How do I remove the popup message when hitting the back button in my catalog?

If you are trying to remove the message box that appears when you hit your back button when using the OE catalog, drop this javascript in your master template page (default.wc) just about the </body> tag.

<script type="text/javascript">
if (typeof SophioAjaxCatalog === "undefined") {
SophioAjaxCatalog = {};
}
SophioAjaxCatalog.preventPageLeave=false;
</script>

這篇文章有幫助嗎? 0 Users Found This Useful (0 Votes)