Popup Window Javascript
Jump to navigation
Jump to search
Configuration
- Simply create a new Javascript function to call window.open. You can add texts, formats or paragraphs as needed.
<script language="JavaScript" type="text/javascript"> function popup_window() { w = window.open("", "Window", "width=320,height=400,status=0,toolbar=0,menubar=0"); w.document.write('<html><head><title>Help Window</title>'); w.document.write('</head><body>'); w.document.write('<div><font face="Arial" size="2">This is help page.'); w.document.write('</font></div><p>'); w.document.write('<div><font face="Arial" size="2">Yes, this is help page.'); w.document.write('</font></div><p>'); w.document.write('<div><font face="Arial" size="1"><a href="javascript:window.close();">Close This Window</a></font></div><p>'); w.document.write('</body></html>'); } </script>
- This function can be called from a button or html link using:
javascript:"popup_window();"