Forum Moderators: open

Message Too Old, No Replies

Changing browser property (Menubar etc) on current window browser?

         

Jasmine

4:08 am on Sep 19, 2003 (gmt 0)



Greetings

I have a question about how to pull back the menubar, address bar and scroll bar that disable on the current setting.

I made a custom menubar, scrollbar and address bar that reflect my company corporate identity (such color, icon, etc), by making a new pop up window and set the default menubar, scrollbar and address bar disable and replace it with my company customize menubar, scroll, and addressbar.
They all are fully functionable.

The problem is raising when visitor use the customize address bar and other to visit another site. The customize stuff disappear (of course), and leave an empty browser navigator since i set it disable from the begining.

My question is, is it possible to pullback all that bars without poping up a new window browser.

Sorry for posting a long post..:), i just want everybody know the situation, thank in advance.

Jasmine

korkus2000

12:41 pm on Sep 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld Jasmine,

As far as I know, no. You have to effect browsers you have control over or that you poped up. So only new windows you opened can have things taken away. Once you take settings away, they are gone. You have to open a new window to get those settings back.

Jasmine

2:00 am on Sep 20, 2003 (gmt 0)



korkus2000, thank you for your reply. Maybe it can or maybe it cant be done (forgive me for doubting :)), until i found this code:

function changeProperties() {
window.menubar.visible = false;
alert(window.menubar.visible);
window.menubar.visible = true;
alert(window.menubar.visible);
}

This was an old post from another board i have found last nite. The coder explain that this function first hides the menubar of the actual window and afterwards displays the menubar again.

I have try it though, but still cant work, do you know something i missed.

Thanks again
Jasmine

MonkeeSage

4:46 am on Sep 20, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That function will only create a new attribute on the window.menubar object called visible, but the browser doesn't have a clue (or care) about that.

For all intents and purposes the function might as well be...

function changeProperties() { 
window.menubar.purple_people_eater = "one_eyed_one_horned";
alert(window.menubar.purple_people_eater);
window.menubar.purple_people_eater = "dead";
alert(window.menubar.purple_people_eater);
}

From everything I've seen korkus is spot on. You can't show / hide status, menubar, toolbar, scrollbars or location after the initial window creation. You have to set them how you want them with the window.open() method, then you're stuck with them until the window is closed.

Jordan