View Full Version : Pop-ups
thefodil
11-05-2003, 07:23 AM
Can anyone tell me how you create a pop-up that appears on the moment you open the homepage?
coothead
11-05-2003, 08:46 AM
Hi there thefodil,
This should do the business :D<body onload="window.open('some.html','name','top=100,left=100,width=200, height=200,');">
c:D:Dthead
God Zilla
11-07-2003, 06:27 AM
here´s another good one, that lets you decide if you want a toolbar, status, resizable, etc:
<script language="JavaScript">
<!--Start Hide
window.open('http://www.blablayoursite.com','my_window','width=300, height=200, status, resizable, toolbar');
// End Hide-->
</script>
:)
thefodil
11-07-2003, 08:32 AM
Thanks for the help, my site looks a lot better now!!!
additionally:
<script language="JavaScript" for="window" event="onload()">
window.open("http://www.my_page.htm", "pop-up", "scrollbars=no,resizable=no,height=230,width=170")
</script>
you could also have this code to create a button on your pop up that when the user clicks on it the pages closes:
<FORM>
<DIV ALIGN="CENTER">
<INPUT TYPE='button' VALUE='Close Window' onClick='window.close()'>
</DIV>
</FORM>
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.