![]() |
|
|
|
|
|||||||
| 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
|
|||
|
|||
|
I want to use a pop-up JavaScript function, which is called when activating a link in my page on my hosting. If someone can make a code and explain me how it work, I will be grateful.
|
|
#2
|
||||
|
||||
|
The following function is recorded between < head > ... head > of your HTML document:
HTML Code:
<script language="JavaScript"> <!-- function openPopup(url, width, height, scrollbars, resizeable){ window.open(url,'popup','width='+width+', height='+height+', scrollbars='+scrollbars+', resizeable='+resizeable+'') } //--> </script> HTML Code:
<a href="#" onClick="javascript:openPopup('site.html','300','200','yes','no');">Test</a> |
![]() |
| Tags |
| code, dynamic, hosting, javascript, popup |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|