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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting a windows attributes??

Status
Not open for further replies.

efrost2

Programmer
Jul 18, 2001
50
US
Is it possible to set a window's attributes (ie, menubar, statusbar etc) in the window_onload event? I need to have my page load with none of the tool bars showing. Any suggestions.
Thaks
 
u mean change attributes of existing window? w/o opening new one? i think it is not possible.. sorry regards, vic
 
you could have a launch page which simply ran a script to open a window withou the toolbars etc.

something like:

window.open('mypage.htm', 'name', 'width=??,height=??');

the statusbar,scrollbar,toolbar etc attributes go in the quotes with width and hieght the default is no if not specified.

Then close the launch page with

window.close()

hope this helps

:)
 
crazyboybert, u'll get confirm box sayin "this page is tryin 2 close THAT page, blah blah blah, what a dirty trick!! LOL"
'coz u can close a window only created via window.open (thy means thru javascript) regards, vic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top