Thursday, December 23, 2010

HTML Popup Window Code

You can use the following HTML code to create a popup window within your HTML document. Simply copy, paste, and change the values to suit.

The code is...




<script type="text/javascript">
// Popup window code
function newPopup(url) {
popupWindow = window.open(
url,'popUpWindow','height=700,width=800,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')
}
</script>
<a href="JavaScript:newPopup('http://www.askcodes.blogspot.com');">Open a popup window</a>