Here's the code I use for popups. Works great on internal pages or from a website. Never had to change any settings to use it:In between your head tags:
<SCRIPT language="JavaScript">
<!-- hide javascript
var parameters = 'resizable=no,top=0,left=0,scrollbars=no,menubar=no,status=no,width=290,height=230';
function popup(link) {
win = window.open(link,'',parameters);
}
//-->
</SCRIPT>
Change the var parameters= line to suit.
Then, to pop your window from elsewhere on your page, simply use this:
<a href="javascript:popup('pagetoopen.htm')">Click here for more info...</a>
If the page you're popping up is internal just use the page name (whateveritis.htm). If it's an external website then use the full URL.
And if you want the popup to appear without a link being clicked, ie. as soon as a particular page is opened, add this to your body tag instead of the link:
onload="popup();"
Or use onUnload="popup();" to popup the window when they leave a particular page.
Hope that helps.
M.
(Edited by MartinB at 4:39 am on Oct. 18, 2002)