/    Sign up×
Community /Pin to ProfileBookmark

on mouse up check browser if then

i need code that does this:

on mouse up check browser. if internet explorer, open example.html in new window with dimentions 100 by 200. if netscape navigator, open example.html in a new window with dimentions 300 by 400.

please help me?

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@fredmvNov 26.2003 — [font=courier]<a href="#" onmouseup="d=(typeof(document.all)!='undefined'&&typeof(window.opera)=='undefined')? 'height=100,width=200':'height=300,width=400';window.open('example.html','','scrollbars=1,'+d);return false;">foo</a>[/font]

[color=red][b]NOTE:[/b] Make sure it's all on one line.[/color]
×

Success!

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