I have a page with a search form. When you visit the page for the first time, I have a jQuery(document).ready() firing:
jQuery(document).ready(
function () {
jQuery("#new_search").val(Math.round(new Date().getTime() / 1000));
}
);
Now when you submit the form and then hit the back button, the document.ready does not fire, and it needs to.
The original problem was only in Firefox, but after some research I found that adding an unload event to the body solved that:
jQuery(window).unload(function(){});
Now, I've been told it does not work in IE11.
Anyone have any tips for getting the document.ready function to fire in IE11?