Here’s my javascript popup:
<script language="javascript">
<!-- This script is Copyright © 1999 - 2003 by Christopher William
Coddington. All rights reserved.
Protected by international copyright laws. -->
<!--
function popup() {
window.open ("page.html","window name","height=200,width=400,toolbar=no,menubar=no,scrollbars=0,resizable=no");
}
// -->
</script>
Explanation:
1.) function popup() {
This is the name of the window you want to open. You can select any name you like. Refrain from using numbers and short names, due to it causes the script to fail.
2.) window.open(“page.html”,“window name”,“height=200,width=400,toolbar=no,menubar=no,scrollbars=0,resizable=no”);
}
// -->
Okay, first thing is first. page.html - Just simply enter the page you are targeting. It can be any file you want to target. *.php, *.swf, *.html, *.gif, *.jpg, etc.
window name - if you read the explanation at the first part of the script, where it said function popup(), the word “popup” is the window name. Therefore you would replace “window name” with “popup”.
The bold numbers on height and width just mean you can adjust them to be the exact pixel width you desire.
On the toolbar, menubar, and resizable options, the word “no” is in bold. This means you have the option of either “yes” or “no”. If you want any of these options available to the site visitor, change these values to “yes”, if not, set the values to “no”.
The scrollbars value is set at 0 at the moment. You can only set it to 2, making 2 scrollbars show up on the browser. A standard browser only has 2 scrollbars, so you can’t go any higher than 2. If you have any other questions, feel free to PM me or e-mail me.
Christopher William Coddington (Xzandar / cwcandromeda)