Forum Moderators: open

Message Too Old, No Replies

Accessing navigator object attributes in the same window

Can it be done?

         

MozMan

6:24 pm on Nov 19, 2004 (gmt 0)

10+ Year Member



OK-

It's pretty common to set attributes when you open a new window, like this:

window.open ('/SomePage.html', 'NewPage', 'width=720,height=400,resizable=Yes,left=50,top=70,status=no,location=no,alwaysRaised=yes,toolbar=no,scrollbars=yes');

As you can see, with this command, I can open a new window, set it's size, hide the toolbar, etc...

But can I do this for the window I'm currently in, without having to open a new window?

In other words, I will have a user that is directed to my page with a link in an email. When he gets to my page, I want the page to take on specific attributes, such as size, hide the toolbar, hide the status bar, etc, but I don't want to have to send him to yet another page to do it.

Is there a method I can use to apply these kinds of attributes to the window that is currently opening? Should I be looking to CSS to do this, instead of JS?

Any help will be appreciated!

-Moz

Bernard Marx

6:50 pm on Nov 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I can be done 'fraid.

Just imagine what kind irritating things would be done with it by the same kind of people that launch onunload pop-ups.

MozMan

7:38 pm on Nov 19, 2004 (gmt 0)

10+ Year Member



feh... I was afraid of that...

Thanx for the reply.

-Moz