Open a message window with a button or a link
|
<SCRIPT LANGUAGE="JavaScript"> function 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=window.close()>"); msg.document.write("<center>page content here</center>"); msg.document.write("</body></html><p>"); } </script> |
|
<form> <input type="button" value="Open Window" onclick="win()"> </form> Or you may use: <a href="javascript:win()">Open Window</a> |
|
*If you just want to open an existing HTML page in the new window, you can replace win()'s coding above with: window.open("yourpage.html","","height=200,width=200,left=80,top=80"); then delete the other "MSG-rows"! |
Free JavaScripts provided
by Winfolinx.com