First, copy this script into the <HEAD> section of your page:
Code:
<SCRIPT TYPE="text/javascript">
<!--
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=400,height=200,scrollbars=yes');
return false;
}
//-->
</SCRIPT>
For now we'll skip the details of how the script works and move to the next step. The script above opens the popup, but something needs to run the script. Your situation is that the script is run when the user clicks on a link. A link like the following would run the script:
Code:
<A HREF="popupbasic.html"
onClick="return popup(this, 'notes')">my popup</A>
And that should solve your problem... oh yeah edit it
Bookmarks