View Full Version : A Unique Problem - Ignoring Placing Page on Back Button History

05-23-2012, 04:16 PM
Hi, I'm writing help files in the form of html pages with javascript code. They're then compiled into a WinHelp chm file and deployed with the program I'm writing. Here's a problem that I've seen with a couple of my pages: Some of my pages contain an image with rectangles you can click on and it will pop up a pop up box (not another window) that contains another page. This is the code I'm using:

<area shape="rect" coords="23, 77, 58, 330" href="javascript:void(0);" class="MCPopupSpot" onclick="FMCPopup( event, this ); return false;" MadCap:iframeName="popup1" />

<span class="MCPopup">
<iframe class="MCPopupBody" name="popup1" frameborder="0" MadCap:src="test.htm" src="../Skin/Blank.htm" style="display: none;" onload="if ( typeof( FMCIFrameOnload ) == 'function' ) {{ FMCIFrameOnload( this ); }}">

So this works great, besides that when you click on one of these pages and then attempt to browse away from the parent page by using the back button it doesn't work. The back button will reopen the old popup pages that you clicked on in the parent page. Is there any code I can write that makes certain pages ignore their history so that the back button will not navigate back to those popups but instead navigate to the last parent page I was on?

I probably can elaborate more, it's a very unique problem that's hard to explain.

Thanks in Advance,