Click to See Complete Forum and Search --> : fullscreen=yes, scrollbars=no
Dumbass
11-18-2003, 01:37 AM
window.open('index.html','indexWindow','fullscreen=yes,scrollbars=no')
I did have a few other features in there, but got rid of them to try and find out what the problem is. Basically, it still puts scrollbars there, even though I tell it not to. How can I get rid of them?
Pittimann
11-18-2003, 03:33 AM
Hi!
I'm quite sure you're using MSIE, Dumbass, isn't it??
If you want that window not to have scrollbars but full size you cannot avoid using frames. The file opened in the new window should be a frameset document containing one frame. This frame's source will have to be the file you want to display and in the frameset you have to do somerhing like:
<frameset rows="100%">
<frame src="File_to_be_displayed.html" name="xy" scrolling="no">
</frameset>
There are browsers which just add scrollbars to a frameless document when necessary (too much content). MSIE always adds them unless it is a popup which is not full size (and scrollbars set to "no")...
Cheers - Pit
Dumbass
11-18-2003, 03:34 AM
Erm... That's exactly what I had.
EDIT: This was in response to the first reply by the way...
EDIT 2: Which has now been deleted anyway..
Pittimann
11-18-2003, 03:39 AM
Maybe you put "File_to_be_displayed.html" (from my example) as the file to be shown in the new window and not the name of the frameset document :confused:
Dumbass
11-18-2003, 03:41 AM
Sorry about the confusion... Someone posted before you, and posted the exact same code I had in my original post. I replied, and after that saw your reply before mine, and... Well yeah.
Your solution worked perfectly, thanks :)
Pittimann
11-18-2003, 03:42 AM
I was already wondering wher it might have gone...;)
Pittimann
11-18-2003, 03:45 AM
By the way, Dumbass -
do you want the window to be displayed without title bar and all that browser stuff or was your main intention to get rid of the scrollbars??
Dumbass
11-18-2003, 03:47 AM
Just to get rid of the scrollbars :)
Pittimann
11-18-2003, 03:51 AM
In that case you can use a simple hyperlink pointing to your frameset document with target="_blank" instead of using window.open(). Advantage: this will work also for people having javascript disabled...
Cheers - Pit