Is there a way to re-execute JS without refreshing the page?
Tell me if I have a parent page and an inner page. When the called inner page is called, it is called via ajax, replacing the contents of the parent page. When the user clicks back, I would like to return to the parent page without reloading the page. But, the user interface of the parent page relies on javascript, so after they return, I would like to re-execute the parent javascript page. Is it possible?
Edit: Here is the code. I am transferring my code to a function, but where and how could you name this function?
function executeGlobJs() {
alert("js reload success");
}
source
share