Quantcast
Channel: DeveloperFeed » Javascript
Viewing all articles
Browse latest Browse all 5

How to redirect page to another url using Javascript?

$
0
0
Sometimes we have to redirect a page to another location. This can be achieved by using Javascript window.location method in the HTML page  using the following snippet. This script can be added anywhere on the page, however as a best practice it should be added at the beginning of the web page. <script language=”JavaScript”><!–window.location=”http://www.another-url-or-site.com/something”;// –></script><!>Alternately, […]

Viewing all articles
Browse latest Browse all 5

Trending Articles