»
EnglishFrenchVietnamese

Print - Popup with parameters - JavaScriptBank.com

Full version: jsB@nk » Snippet » Popup with parameters
URL: http://www.javascriptbank.com/popup-with-parameters.html

Popup with parameters © JavaScriptBank.comThis JavaScript make a popup with options as position, toolbar, menu,...

Full version: jsB@nk » Snippet » Popup with parameters
URL: http://www.javascriptbank.com/popup-with-parameters.html



JavaScript
<SCRIPT LANGUAGE="JavaScript"><!-- Beginfunction win() {msg=window.open("","msg","height=200,width=200,left=80,top=80");msg.document.write("<html><title>Windows!</title>");msg.document.write("<body bgcolor='white' onblur=self.close()>");msg.document.write("<center>page content here</center>");msg.document.write("</body></html><p>");// If you just want to open an existing HTML page in the // new window, you can replace win()'s coding above with:// window.open("page.html","","height=200,width=200,left=80,top=80");}// End --></script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<form><input type="button" value="Open Window" onclick="win()"></form><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->