There
are so many ways to redirect one javascript file to other. As per my knowledge
i am showing below ways, If any one knows any other way they can tell in the
comments section.
// it won't store information about previous page.
window.location.replace("http://adidotnettotal.blogspot.in/");
// best way to use
window.location.href = "http://adidotnettotal.blogspot.in/";
//using javascript only.
window.location = "http://adidotnettotal.blogspot.in/";
//Using JQuery way - 1
var url = "http://adidotnettotal.blogspot.in/";
$(location).attr('href',url);
//Using JQuery way - 2.
$jq(window).attr("location","http://adidotnettotal.blogspot.in/");
//redirecting to the home page.
window.location = window.location.host
// it won't store information about previous page.
window.location.replace("http://adidotnettotal.blogspot.in/");
// best way to use
window.location.href = "http://adidotnettotal.blogspot.in/";
//using javascript only.
window.location = "http://adidotnettotal.blogspot.in/";
//Using JQuery way - 1
var url = "http://adidotnettotal.blogspot.in/";
$(location).attr('href',url);
//Using JQuery way - 2.
$jq(window).attr("location","http://adidotnettotal.blogspot.in/");
//redirecting to the home page.
window.location = window.location.host
No comments:
Post a Comment