/    Sign up×
Community /Pin to ProfileBookmark

Wrong toolbar opens in Internet Explorer

Hello. I’m writing a website which contains the following function, in which I intend the child window to show the Back button, since it will contain links of its own:

function Accommodations(){ acm=window.open(“Accommodations.pdf”,’accom’,’screenX=250,screenY=290,left=250,top=50,resizable,height=600,width=750,toolbar,scrollbars’);
}

My O’Reilly Javascript book says the feature ‘toolbar’ will accomplish this, and it does, but only in Firefox. When I test it in Internet Explorer, a different toolbar comes up, one with options like ‘Favorites’, ‘Home’ (icon of a house), ‘Print’ (icon of a printer), etc. How do I make IE show the toolbar with a Back button instead of this toolbar, which I do not want?

(The main page which runs the above function does show the back button in IE. It’s only in the child window where it does not appear.)

Thanks for your help.

Peyton?

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@peytontoddauthorSep 02.2009 — Googling around, I finally came across an explanation of the browser command which partly solves my problem. It turns out that in Internet Explorer (the recent versions anyway), the Back button is activated by the 'location' feature value, while the 'toolbar' feature activates the 'Favorites', 'Home', etc. choices.

I think I know how to detect whether the browser is Netscape-compatible (test whether navigator.appName == "Netscape"); now all I have to do is find out how to detect earlier versions of Internet Explorer vs. recent versions. As to Opera, etc. etc. I'm lost at the moment...

Peyton :rolleyes:
×

Success!

Help @peytontodd 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.16,
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,
)...