faqts : Computers : Programming : Languages : JavaScript : Windows

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

106 of 187 people (57%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

How do I disable Scrollbars in Javascript for a page?

Aug 26th, 2000 09:26
Martin Honnen, Daniel Archer,


You can only specify for a new window you open whether it should have 
scrollbars or not:
  var win = open('http://JavaScript.FAQTs.com',
                 'faqts',
                 'scrollbars=1,resizable=1');
will open the window with scrollbars (if necessary) and resizable while
  var win = open('http://JavaScript.FAQTs.com',
                 'faqts',
                 'scrollbars=0,resizable=0');
will open the window without scrollbars and not resizable.
Once the window is open you cannot change the scrollbar setting unless 
you use trusted script in NN4:
http://www.faqts.com/knowledge-base/view.phtml/aid/859/fid/124/lang/
With IE4+ I think you can load a page with
  <BODY SCROLL="no">
to disable scrolling.