/    Sign up×
Community /Pin to ProfileBookmark

More New Window Woes

Guessing one of you will spot my mistake in about 5 seconds. This is the code:

<a href=”javascript:window.open(‘http://www.msn.com’,’popup’,’toolbars=1,height=500,width=500′)”>Open
Window</a>

It opens a new window just as it should, however, when it does, the contents of the parent window are replaced with [object].

What have I missed doing?

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@96turnerriMar 30.2005 — try

<a href="http://www.msn.com" onclick="javascript:window.open(this.href,'popup','toolbars=1,height=500,width= 500'); return false;">Open

Window</a>
Copy linkTweet thisAlerts:
@betheballauthorMar 30.2005 — Thank you. That resolved it. If I am not mistaken, your version is also a more accessible solution, isn't it?
Copy linkTweet thisAlerts:
@96turnerriMar 30.2005 — yes thats correct, it will work regardless of JavaScripts capability, restrictions or existance ?
×

Success!

Help @betheball 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 6.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

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