Home How do I redirect with JavaScript?
Reply: 0

How do I redirect with JavaScript?

user10566
1#
user10566 Published in September 21, 2018, 8:24 am

This question already has an answer here:

  • How do I redirect to another webpage? 59 answers

How do you redirect to a page from another page with JavaScript?

share|improve this question

marked as duplicate by kdgregory, Michał Perłakowski javascript StackExchange.ready(function() { if (StackExchange.options.isMobile) return; $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() { var $hover = $(this).addClass('hover-bound'), $msg = $hover.siblings('.dupe-hammer-message'); $hover.hover( function() { $hover.showInfoMessage('', { messageElement: $msg.clone().show(), transient: false, position: { my: 'bottom left', at: 'top center', offsetTop: -7 }, dismissable: false, relativeToBody: true }); }, function() { StackExchange.helpers.removeMessages(); } ); }); }); Dec 8 '16 at 19:41

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    You need a piece of Javascript to redirect to a CI view? – joelcox Jan 20 '11 at 8:12
  • 5
    Does it have anything to do with codeignite or did you just choose random tag? – Shadow Wizard Jan 20 '11 at 8:44
  • 2
    I suggest you to use this URL redirect generator — with no-script & SEO support It has a build in IE hack to pass the referrer. – Patartics Milán Aug 26 '15 at 13:07
  • location.replace("url"); or window.location.replace("url"); – David Jaw Hpan Sep 18 '15 at 2:59

6 Answers 6

active oldest votes
up vote 1355 down vote accepted
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.357583 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO