Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I get rid of the scroll bars

Status
Not open for further replies.

tango1948

Programmer
Dec 23, 2006
111
IL
Hi
I have the following in my project Start Page:

<body onload="window.open
('Login.aspx', '', 'scrollbars=no'); return false;">

but the window opens with scrollbars regardless of wether all the content is visible or not.
What determines if the scrollbar is visible or not

Thanks for any help

david
 
Perhaps you have some content in your page that is making them appear? It's hard to say without seeing Login.aspx, and also hard to know given that you've specified no dimensions for your open window, so we don't know what size it is opening to.

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Hi, I'm using Explorer 6

the full line is:

<body onload=
"window.open('Login.aspx', '', 'fullscreen=yes, menubar=no, toolbar=no, scrollbars=no'); return false;">

All the attributes apart from scrollbars are in effect as specified.

There are no further refrences to scrollbars in the project
 
Make sure there are no spaces after the commas in your options string. And try removing the "scrollbars=no" completely. AFAIK, if you specify any option in the options string then everything is turned off unless you specifically turn it back on. And just having the word "scrollbars" in the option string might be enough for IE 6 (buggy as it is) to think that you really want scrollbars.

Good luck.

Einstein47
For best results: hand wash in cold, tumble dry low.
For not so good results: drag through puddles, pound on rocks, air dry on tree branch.
[&#91;]Starbase47.com]
 
Maybe I'll just repeat myself:

Self said:
you've specified no dimensions for your open window, so we don't know what size it is opening to.

Unless you do specify dimensions, the window that opens will be a different size for every user. Perhaps you should specify one?

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top