Forum Moderators: open

Message Too Old, No Replies

Popup (or DHTML window) with only <BODY> code

All scripts I find place code in <HEAD> and <BODY>, I can only use <body>

         

MatthewHSE

8:47 pm on Dec 27, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm looking for a script that will automatically open a standard popup or a DHTML popup without needing to place coding in the <head> of the page. Is there such a technique, and if so, how can I use it? Please note that I'm a complete newbie when it comes to javascript.

Thanks,

Matthew

CloudLong

10:45 pm on Dec 27, 2003 (gmt 0)

10+ Year Member



u can use this one

<!--
Code By "CodeFreak" Cloud - codefreak.proboards19.com - 2003
You may leave this part of code intact to show your gratitude or remove it
-->
<body onload="window.open('urlofpopuppage', 'windowname', 'width=400, height=200, scrollbars=yes');">

This should do it.

Replace the urlofpopuppage with the name of your page. windowname is the name of window, you can use whatever name you want...