I am developing a web application with a common menu for all pages. In this regard, I decided to download the content associated with the menu buttons inside the div using jquery.
So, I have this:
$("#AddNewProductBtn").click(function() { $("#content").load("addproduct.html"); });
I want to track the page displayed inside the div "#content". If users refresh the page, I want to load the same page in "#content". Is there a way to do this, or is there a workaround?
I have seen several websites that use iframes to load pages, but when the user clicks a button on the menu, the URL also changes. I did not find any information on how to do this.
thanks
javascript jquery html iframe
Dan dinu
source share