I have a simple ajax script to download the content of a file.
I want to show a warning if there is a redirect
$(document).ready(function(){
$("button").click(function(){
$("#div1").load("demo_test.txt #p1");
});
});
Any help? thanks in advance
source
to share