/    Sign up×
Community /Pin to ProfileBookmark

I know you can control the visibility of the toolbar,scrollbar, resize feature, etc from the main html page, however.. is there a way to allow the new window (popup) to control those attributes?
I am in a situation where changes to the main program will overwrite my code, therefore if i add in code to the main html i will have to redo it each time we upgrade. So I would like to have a pop up that controls those things itself.
I would like everything except the titlebar and ‘window’ hidden.
Please let me know and thanks so much!!?

to post a comment
JavaScript

6 Comments(s)

Copy linkTweet thisAlerts:
@Phil_KarrasMar 25.2003 — Yes, you use:

var NewWin = window.open(URL, Name, Attributes);

Attributes control everything about the window, size, position, which bars are used, etc.

One problem is that the names and values are different for most the attributes for each of the two major browsers, IE & NS.

I have these listed in a help html file on my test site:

http://cs.yrex.com/

Use the [b][Help Index][/b] application to search the help files that might help.

Look for "window.open" and it should return all help###.htm files dealing with window.open and in that set should be two or more dealing with these attributes.
Copy linkTweet thisAlerts:
@lora_3677authorMar 25.2003 — Quote Phil Karras:

Yes, you use:

var NewWin = window.open(URL, Name, Attributes);

Attributes control everything about the window, size, position, which bars are used, etc.

One problem is that the names and values are different for most the attributes for each of the two major browsers, IE & NS.



Thanks for your help. I really appreciate it.

The code you gave me needs to be located in the main html page to control the popup, correct? Is there a way to do the same thing (regarding attributes), but actually store the attributes of the new window in the new window's code? I have been trying to figure out if the onLoad function has attributes that could control it....

Or did I totally miss the mark, here?
Copy linkTweet thisAlerts:
@lora_3677authorMar 25.2003 — [i]Originally posted by lora_3677 [/i]

[B]Quote Phil Karras:

Yes, you use:

var NewWin = window.open(URL, Name, Attributes);



Attributes control everything about the window, size, position, which bars are used, etc.



One problem is that the names and values are different for most the attributes for each of the two major browsers, IE & NS. [/B]
[/QUOTE]


Thanks for your help. I really appreciate it.

The code you gave me needs to be located in the main html page to control the popup, correct? Is there a way to do the same thing (regarding attributes), but actually store the attributes of the new window in the new window's code? I have been trying to figure out if the onLoad function has attributes that could control it....

Or did I totally miss the mark, here?
Copy linkTweet thisAlerts:
@Phil_KarrasMar 25.2003 — Take a look at the examples I have on my web site.

I made an HTML/JavaScript file called: help181.htm = Phil's Screen Saver, resize, reposition, change color, Hex #s

which shows how the file itself can change at least colors, sizes, and positions. Since those can be changed inside the file I will assume the others can as well in similar fashion.
Copy linkTweet thisAlerts:
@lora_3677authorMar 25.2003 — hmmmmmmmmmmmmm...... thanks for your help... i can't find another 'window.something' to apply attributes to besides 'open' that will allow the scrollbars to be hidden.... i think i have searched everysite known to man. ha ha.

if you run across anything, let me know. thanks!!?
Copy linkTweet thisAlerts:
@Phil_KarrasMar 26.2003 — In my example I show how to use:

[b]window.resizeTo(screen.availWidth+10,screen.availHeight+10);[/b]

and

[b]window.moveTo(X, Y);[/b]

As then stated there should be things like: (for Netscape only)

window.scrollbars.visible = false; // true

window.toolbar.visible = false; // true

window.statusbar.visible = false; // true

window.menubar.visible = false; // true

window.locationbar.visible = false; // true

window.personalbar.visible = false; // true

Now, the only one that doesn't work right away is the scrollbars, the others are instant.

To get the scrollbars to turn on/off you'll have to reload():

location.reload(); // Now scrollbars turn on/off!

These are NOT the same attributes for IE, you'll have to look those up. When you find those you might post them here as well so we have them all for both browsers.

Good-luck.
×

Success!

Help @lora_3677 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...