Liam Delahunty: Home | Tips | Web | Contact |
---|
Recommended laptop
under £500. Think I deserve a present? See my Amazon Wish List |
JavaScript Open New WindowThis little form is so you can open a new window with the relevant properties, it also displays the appropriate javascript for the link, and for the script code.
<script language="JavaScript"> <!-- // function wo(url, name, bits) { newWin=window.open(url, name, bits); newWin.focus(); } // --> </script> Okay, the url is obviously the url of the new page you want to open in a window, name is whatever you want to call it, so you can refer to it later to other pages in the same window. the bits are a string of comma delimited featres to be used in the new window. Do not put spaces after the commas. I'll just mention the most popular cross browser (IE/NN) features. Share this! |