![]() |
|
|
|
|
|||||||
| Javascript / Java Applets Are you a JavaScript guy? Do you need help with JavaScript? This is the place to talk about anything related to Java. |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi all, I want to create a pop-up for one of my pages. Can someone give me an easy code that can be used. Please also explain me where in my source page code should I put your new code.
Best Regards |
|
#2
|
||||
|
||||
|
Set up the code is very easy. Choose from what file you want to show popup window and put the code in it. You must put this code after HEAD
HTML Code:
<SCRIPT TYPE="text/javascript"> function popup(mylink, windowname) { if (! window.focus)return true; var href; if (typeof(mylink) == 'string') href=mylink; else href=mylink.href; window.open(href, windowname, 'width=800,height=600,scrollbars=yes'); return false; } </SCRIPT> HTML Code:
<BODY onLoad="popup('autopopup.html', 'ad')">
|
|
#3
|
||||
|
||||
|
Quote:
__________________
Best, Shazam HostICan Community Superhero |
![]() |
| Tags |
| popup |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|