$("#footer_privacy_policy").click(function(){
window.location = "aboutus.php";
$(window).load(function(){
alert("window is loaded");
$(".about").load("./about/privacy_policy.txt");
});
});
So I loaded the page “aboutus.php” when I perform a click on the id,
but the alert never pops up.
Any one could help with this problem?
As soon as you set the url with
window.location, the page is reloaded so the$(window).load()never happens as it is inside the click event callback.Is there a reason you are using
window.locationinstead of relying on thehrefattribute and linking to a page with the content already inside?