javascript - How to redirect to another page and print an alert? -
i need redirect page , when it's loaded need print alert("hello");
i think this:
$.load(path, function() { alert.log("hello"); }); i have used window.location incorrect, because changing url can't print alert("hello");
anyone can me?
you can change page via window.location have tried, if want alert in page, page should contain script alert. in new page add:
$(document).ready(function() { alert('hello'); })
Comments
Post a Comment