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

Onload change of main window attributes

Status
Not open for further replies.

oldnewbie

Technical User
Dec 6, 2000
9,142
CA
Search seems out of commission! So sorry if this has been answered a thousand times!
I have manage to change the size, the window's title, reposition it... But can't seem to find a way to change other attributes of a main window called through a link.
Is there some way, onload, to remove such things as the menubar, location... & the sort without having to open a popup with those characteristics, or changing the main window from such a popup?

Thanks for your help!
mywink.gif
ldnewbie
 
oldNewbie -

[SENIOR CODERS PLEASE CORRECT ME IF I'M WRONG]

I belive that once the document has been drawn, you can't change it unless you include a refresh, and even then I'm not sure if this is possible. What is your intended goal here?

- DB Web Developer
Digital Video Arts, LTD.
 
DB,
That's exactly it: I'm trying to remove the toolbar before that window is drawn!
No bad intentions... Just looking to detect the user's resolution, browser and open a fullscreen window accordingly in the same operation, rather than to have a detector page and open a popup afterwards.
I'm aware of the problems that might cause, but seems to me that if I can change the title, the size and position of this window before it's drawn, I could also remove stuff like the toolbar.
BTW, search as turn up no more of a positive answer, but the possible use of an hta or signed script!
Too complicated for me! Unless someone comes up with another solution... Guess I'll stick with my popup!

Thanks.
mywink.gif
ldnewbie
 
oldNewbie,

Let me try and understand what it is that you're telling me. You want to capture the resolution of the monitor that your users are viewing your site with?

If I'm not mistaken, I think that there's a much better way of accomplishing what it is that you want to accomplish.

Please correct me if I'm wrong, but I'm willing to bet that you have a page that has a graphic on it that looks pretty awesome... at 600 x 800. You want it to look good on a much higher resolution as well, right?

What is the url of the site so that I can take a look at it?

- DB Web Developer
Digital Video Arts, LTD.
 
No! You're wrong!
I have a script that detects the user's resolution, and I just re-direct him to the right page, based on his resolution. As I said, all I am looking for is to save one step in this whole operation!
The user clicks the link... This one page detects his resolution and opens up at his resolution!
Simple! One click!

mywink.gif
ldnewbie
 
oldNewbie,

You can accomplish this by burying all of your code in a function that is called by either an onClick() function or an onUnload() function.

- DB Web Developer
Digital Video Arts, LTD.

AIM: dgtlby
ICQ: 68300740
 
DB,
I'm old and far from being an expert in java... Could you be a little more specific... And post a template code?

Thanks.
mywink.gif
ldnewbie
 
hi oldnewbie, let me make it clear 2 u:
i THINK there is no way of doin just what u want with javascript (i mean remove menubar, address bar, etc) as far as i messed with it u can remove scrollbars plus 2 what u was sayin
i'm afraid that u r 2 open NEW window, & then u can do anything u want with it & ur old window wuld be just for resolution check.. does it matches with ur demands?

but may be u can do it thru vbscript? i dont kno vbscript much, but i heard that its pretty powerfull 2 this kinda stuff. ofcourse, if u work under ie only.. regards, vic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top