/    Sign up×
Community /Pin to ProfileBookmark

IE Redirect?

I want a javascript that will make the user, if using Internet Explorer, to be redirected to another page. I used to know a fair amount of javascript, but like a foreign language, I didn’t use it, and I’ve forgotten it to the point of no return, well, until I get a new book. ;D Thanks again, and let me know if this is impossible of course.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@tirnaApr 14.2010 — what do you mean by

[CODE]I want a javascript..........[/CODE]

Do you [B]want [/B]someone to actually write it for you?

You can get the browser's manufacturer of the browser making the web page request by parsing [CODE]navigator.userAgent[/CODE] and redirecting to wherever if the browser is a certain type.

It's no more than 2-3 lines of code.

I'm in the middle of something else at the moment so I will have a look at it later on if time permits if no-one else helps in the mean time.
Copy linkTweet thisAlerts:
@rnd_meApr 14.2010 — [CODE]<script>
if("v"=="v"){location.href="http://mysite.com/iepage.htm";}
</script>[/CODE]


you can do it without JS:
[CODE]
<!--[if IE]>
<meta http-equiv="refresh" content="0;url=iepage.htm">
<![endif]-->[/CODE]
×

Success!

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