Anyone know a code, that makes a window pop up when a page is accessed?
| SitePoint Sponsor |
Anyone know a code, that makes a window pop up when a page is accessed?
-Courtesy of Kaze
Here's a simple one.
Insert this inbetween the HEAD tags of your page:
Then put this inside the BODY tags:Code:<script> function winopen(){ window.open("your_popup_page.html", "WINDOW NAME", "toolbar=yes,location=yes,directories=no,status=no, menubar=yes,scrollbars=yes,resizable=no,copyhistory=yes,width=200,height=260") } </script>
Code:<body onLoad="winopen()">
Saz: Naturally Blonde, Naturally Dizzy!
No longer Editor of the Community Crier.
Don't mind me, I'm having a BLONDE moment!
Thanks Saz, and by the way, your site is very nice.
-Courtesy of Kaze
If by any chance you are designing in Dreamweaver, there's a cool plug-in for this. Go the to Macromedia downloads area and get the "Advanced Open Windows" plug-in.
Bookmarks