pop ups for a faq page

windows

Guest
i'm trying to create a faq page that will use a pop-up window that contains the answers, but am having some trouble with it. So far, i'm using this function :<br />
<br />
<SCRIPT LANGUAGE="JavaScript"><br />
<!--<br />
function OpenMe(newin) {<br />
flyout=window.open(newin,"flyout","resizable=no,scrollbars=yes,width=300,height=300,top=300,left=300")<br />
}// --><br />
</SCRIPT><br />
<br />
and am trying to link it to <br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"order.html" onclick="OpenMe(order.html)"> click here </a><br />
<br />
but, all this does is open the page.html file in the current window.<br />
<br />
any suggestions?<br />
<br />
<br />
Thnx<!--content-->function OpenMe(newin) { <br />
flyout=window.open(newin,"flyout"," resizable=no,scrollbars=yes,width=300,height=300,top=300,left=300");<br />
return false; <br />
}// --> <br />
Does that help?<!--content-->nope.. i get an error on my page that says that 'order' is undefined.<br />
<br />
this is the link that i'm using to try and get it to work:<br />
<br />
<input type=image src=http://www.webdeveloper.com/forum/archive/index.php/"images/order.gif" onclick="OpenMe(order.html)"><br />
<br />
but, if instead of using <br />
flyout=window.open(newin,"fly....<br />
and i use<br />
flyout=window.open("order.html","fly...<br />
it works fine. But, i want this function to be used for several windows, and i'd rather not make a function for each one.<!--content-->Hi toorudez...<br />
<br />
Try the file name in single quotes:<br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"order.html" onclick="OpenMe('order.html')"> click here </a><br />
<br />
I think (?) that's it.<br />
k<!--content-->worked like a charm... thnx<!--content-->
 
Back
Top