jscript

farshad

Well-known member
Joined
May 1, 2003
Messages
109
Location
London
Here is a script that I am using:

function ShowHelp(PageName)
{
var HelpWindow;
HelpWindow = window.open(pagename,"help","left=600,height=300,width=200");
HelpWindow.focus;
}

And this is the link that I am usiing to use the function;
<div align="right"><a href="#" onclick="ShowHelp(ctcHelp.htm)">Help</a></div>

But there is an error, and it is:
pagename is not defined.
Does this mean that I have to declare pagename somewhere as the parameter of ShowHelp?


Thanks
 
Change you pagename to the same case. Then it will work.
Instaed of pagename type PageName because thats how you declared it.
 
Back
Top