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!

Removing Scrollbars

Status
Not open for further replies.

jdmartin74

Programmer
Sep 13, 2002
45
US
Does anyone know of a way to 'remove' the scroll bars on a window? I can change the colour, but can't find a way of removing them. The Microsoft Windows update page manages this.

Thanks
 
You can't on the main window (that I know of) but you can easily do it on a pop-up window.

It's as easy as something like:

function openwin() {
window.open('sumthin.htm','scrollbars=no')
}

Changing the colour will only work in IE.



É
::
 
Thanks. Yeh, I realised about window.open - sorry, I should have put that in my question. I was interested for the main window, i.e. getting a window to do it on itself. IE only would be fine.

My problem is that I have an IFRAME and I get two scroll bards...one for the main window and one for the IFRAME...I want to lose the main window one as it looks messy. Actually, Navigator, does it by default!
 
I've found the answer myself...as always, the simpler the better!!!...

<body scroll=&quot;no&quot;>
 
interesting question and as much as I don't wnat to start this subject again as it's been beaten into the ground....

why would you want to manipulate the users window in such a way besides it's so ineffective accross different browsers?
it's basically bad design practice and can open the door for viewers to NOT revisit sites.

great example:
you take the scroll away from your index or default whatever and the user has a res of 800* but far be it your page doesn't fit and it leads to partial viewable sections. would you stay at the site? _________________________________________________________
for the best results to your questions: FAQ333-2924
Is your question a most FAQ?? Find out here FAQ333-3048
 
It was for a specific page (non-dynamic content) for an Intranet...therefore, control over browser, screen resolution etc.

It just looked really silly have two scrollbars next to each other.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top