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

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -