Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-11-2007, 04:17 PM   PM User | #1
thealan
New to the CF scene

 
Join Date: Jun 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
thealan is on a distinguished road
How do I set height/width and remove menubar/scrollbar/toolbar onload?

What I want to do is to make a window move to a certain location, set its height and width values, make it not resizable, and remove the scrollbars, toolbar and menubar. However, I do not want to open a new window, I want to make the current window do this onload, any ideas?

For example:
I know I can do this by opening a new window using window.open()
Code:
window.open(url,'title','height=1030,width=745,resizable=no,scrollbar=no,toolbar=no,menubar=no');
but I do not want to open a new window, I simply want to apply this to a currently opened window (eg. Say I type in 'http://www.wherever.com/' in the address bar and hit go, I want to set the afore-mentioned properties to the page about to load.)
thealan is offline   Reply With Quote
Old 06-11-2007, 05:45 PM   PM User | #2
glenngv
Supreme Master coder!


 
glenngv's Avatar
 
Join Date: Jun 2002
Location: Los Angeles, CA Original Location: Philippines
Posts: 10,241
Thanks: 0
Thanked 112 Times in 111 Posts
glenngv will become famous soon enough
For security reasons, it cannot be done. Web pages don't own the browser toolbars and menu unlike in desktop applications where it has full control of them. Imagine if you could do this (especially browsers nowadays use tabbed windows), what will happen to other pages opened in other tabs?
__________________
Glenn
_____________________________________________
Play Tower of Hanoi Android app (Ad-FREE!)
Play Tower of Hanoi Android app (FREE!)
Go to Tower of Hanoi Leaderboard
Play Tower of Hanoi Facebook app
glenngv is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:47 PM.


Advertisement
Log in to turn off these ads.