/    Sign up×
Community /Pin to ProfileBookmark

"window.open" Problems to run with IE

Hello, I’m having some problem with this code:

<a href=”#” onClick=”window.open(‘news/170306.htm’,’News – 17.03.2006′,’height=310, width=450′); return false;”>Read more…</a>

The problem is that when I run the page with any version of IE and try to click on “Read more…”, there is no pop-up coming, nothing happens. It only reads that “site has problems” in the left corner of the IE window.
But the thing is that the popups works fine on Opera! I’ve tried to run the page from other comps as well but it has the same problem!

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@TheBearMayMar 26.2006 — The second argument cannot have any spaces embedded in it when using IE.
Copy linkTweet thisAlerts:
@ElekkoauthorMar 26.2006 — Removed the spaces, still not working...
Copy linkTweet thisAlerts:
@TheBearMayMar 26.2006 — Looks like you have to remove the punctuation also:

&lt;a href="#" onClick="window.open('news/170306.htm','News17032006','height=310, width=450'); return false;"&gt;Read more...&lt;/a&gt;&lt;/body&gt;
Copy linkTweet thisAlerts:
@ElekkoauthorMar 26.2006 — Thanks!
Copy linkTweet thisAlerts:
@felgallMar 26.2006 — You might also want to get rid of the space in the third parameter as that too will stuff up some web browsers.
×

Success!

Help @Elekko 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.5,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...