/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] window.open and IE7?

Hello,

I have a weird problem with [b]window.open[/b] on IE7.

In the following code, [b]window.open[/b] fails:

[code]
var winHandle = window.open(“”, [color=red][b]”TITLE[]”[/b][/color], “resizable=yes height=100, width=100”, true);

winHandle.document.write(“<html><head></head><body>Hello world!</body></html>”);
[/code]

But when I remove the [b][][/b] from [b]TITLE[][/b], it works great. What am I missing here?

Thank you.

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@TheBearMayJun 08.2009 — [ and ] are illegal characters (along with spaces and several others) when used in the second parameter. IE has had that restriction for a long time....
Copy linkTweet thisAlerts:
@the_dpauthorJun 08.2009 — [ and ] are illegal characters (along with spaces and several others) when used in the second parameter. IE has had that restriction for a long time....[/QUOTE]

Illegal? as part of a string, or a title?

Is it an IE only issue?

Where can I find the list of illegal chars?

Thank you.
Copy linkTweet thisAlerts:
@TheBearMayJun 08.2009 — Second parameter for window.open in IE can only contain letters, numbers, an underscore or dash, no spaces or special characters outside of that that I've found.
Copy linkTweet thisAlerts:
@the_dpauthorJun 08.2009 — Second parameter for window.open in IE can only contain letters, numbers, an underscore or dash, no spaces or special characters outside of that that I've found.[/QUOTE]

I understand, thank you.
×

Success!

Help @the_dp 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.18,
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,
)...