Click to See Complete Forum and Search --> : Need help with new window properties


S1L3NC3
11-26-2003, 07:52 PM
Heres my code for a button that opens a new window:



<input type="button" value=" 2 " onClick="window.open('lyrics2.php', 'lyricswin', 'width=300,height=350,status=yes,resizable=yes');">



I want the new window to have scrollbars, how do i do it? i tried this:



<input type="button" value=" 2 " onClick="window.open('lyrics2.php', 'lyricswin', 'width=300,height=350,status=yes,resizable=yes,scrollbars=yes');">



With no Luck.

Thanks ahead of time.

fredmv
11-26-2003, 08:52 PM
The code you have should've worked just fine. Do you possibly have a link where we could see this in action?

S1L3NC3
11-26-2003, 08:54 PM
http://www.fireknives.net/sandbox2/music.php

fredmv
11-26-2003, 09:01 PM
I just tested under Mozilla 1.6a and IE6 and I do see the scrollbars on the new windows (#2 specifically). As I said before, it should work just fine.

S1L3NC3
11-26-2003, 09:28 PM
How odd..Im on IE6 and im not seeing scrollbars. :confused:
Oh well, thank you for your help fred.

fredmv
11-26-2003, 09:45 PM
You're very welcome. Here are some screenshots just to assure you that I do in fact see the scrollbars: Mozilla 1.6a (http://home.comcast.net/~fredv4/1.gif) IE6 (http://home.comcast.net/~fredv4/2.gif)

csduk
12-01-2003, 09:26 AM
Hey guys, for me, this is by far the easiest way to create your customised pop up windows:

http://javascript.internet.com/generators/popup-window.html

Take care.