Full version: jsB@nk » Link » Popup Function
URL: https://www.javascriptbank.com/popup-function.html
Use this JavaScript function to call as many popup windows on a page as you need. It uses the CSS class attribute. It also allows for browsers that have JavaScript turned-off.
Full version: jsB@nk » Link » Popup Function
URL: https://www.javascriptbank.com/popup-function.html
<script type="text/javascript"><!-- Begin/* Created by: Jeremy Keith :: http://www.adactio.com/ */function doPopups() { if (!document.getElementsByTagName) return false; var links=document.getElementsByTagName("a"); for (var i=0; i < links.length; i++) { if (links[i].className.match("popup")) { links[i].onclick=function() { // Below - to open a full-sized window, just use: window.open(this.href); window.open(this.href, "", "top=40,left=40,width=600,height=400,scrollbars"); return false; } } }}window.onload=doPopups;// End --></script><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<a href="http://javascriptbank.com/" class="popup">JavaScript Source</a><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->