View Full Version : Pop-up windows
FragaGeddon
05-31-2002, 06:23 AM
I want to have a pop-up window when you click a certain link.
I've seen pop-up windows that are basically just like a frame and want to know how to do this?
FragaGeddon
05-31-2002, 06:32 AM
Does someone have a link that will give me further explanations on what this is doing? I do understand some of it but need more info.
<script language="Javascript">
<!--
function openWin(schlabourl) {
picwin = open("", "displayWindow", "width=1024, height=768, status=yes, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, titlebar=no");
picwin.document.open();
picwin.document.write("<html><head><meta http-equiv='REFRESH' content='0; url="+schlabourl+"'></head></body></html>");
picwin.document.close();
}
// -->
</script>
kaori
05-31-2002, 09:27 AM
There are easier ways to open window than that.. what that function is doing is writing the content of the pop-up window on-the-fly.
To get that function to work you would need to call it in the hyperlink e.g.
<a href="page.html" onClick="openWin()">Open Pop-up</a>
For a better explanation of how to open pop-ups and easier ways to achieve it check out http://www.htmlgoodies.com/beyond/openwin.html
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.