|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello i don«t know how to do a automatic
opening popup can some of you tell me how to do? |
|
#2
|
|||
|
|||
|
You didn't specify if you wanted it to popup when the user opens your page or when they leave the page. I wrote this script so that it will open a popup window when you enter the page and when you leave the page. Dpending on what you want, you can modify it.
<HTML> <HEAD> <TITLE>Opening a Popup Window</TITLE> <SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT"> <!-- Hide script from old browsers function popup(){ popupwindow = window.open("somewhere.html","","toolbar=no,location=no,scrollbars=no,resizable=no,width=400,height=200,left=500,top=200") } // End hiding script from old browsers --> </SCRIPT> </HEAD> <BODY onLoad="popup()" onunLoad="popup()"> <a href="javascript opup()">Open window</a><br> <a href="javascript opupwindow.close()">Close window</a></BODY> </HTML> I also put links to show you how to open and close the window from a link. Spookster |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Automatic popup! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|