How would I on a link click make a window pop up with no scrollbars, and a custom size..say 1/4 the size of the normal window
Announcement
Collapse
No announcement yet.
pop up window
Collapse
X
-
Like this:
Code:<script type="text\javascript"> function popUp(url) { window.open(url,'new_win','height=400,width=400,scrollbars=no,toolbar=no,resizable=no,menubar=no,directories=no') } </script>
Code:<a href="#" onclick="popUp('http://www.codingforum.net')";>Coding Forum</a>
Edit: Looks like the forum put some additional spaces \ line breaks in the code you'll have to fix that.
Edit: Oops that's what I get for posting in a rush.
BasscystLast edited by Basscyst; Feb 26, 2004, 09:12 PM.Helping to build a bigger box. - Adam Matthews
-
window.open only has 3 parameters. You have 4. Make the 3rd and 4th parameter as one. Also check if the popup blocker feature is enabled. That will prevent the popup to be opened even if the code is correct.
And the script tag has incorrect value:
<script type="text\javascript">
The backslash should be forward slash.Last edited by glenngv; Feb 26, 2004, 09:13 PM.
Comment
Comment