Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

disable back button when navigating an iframe

Status
Not open for further replies.

1DMF

Programmer
Jan 18, 2005
8,795
GB
Hi,

I have an issue where I've been asked to implement an old legacy system, into a new one via an iframe.

The problem is as they navigate around the old legacy app in the iframe, the back button then works within the iframe, something we do not want.

no matter how I navigate in the iframe, I want the back button to work against the parent page not the iframe.

I've tried all the history.forward etc stuff littered around the net, but nothing I have tried works, FF still keeps navigating the iframe with the back / forward buttons.

Is there any way to stop the back button across all browsers?

Thanks,
1DMF



"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music
 
Upon reflection, this is probably going to be more difficult than I'd hoped, and it isn't ideal.

So we have decided to go for the pop-up window, initially ruled out as we wanted to keep the application seemingly 'integrated' into one webapp, plus what with accessibility guidelines and the 'target' attribute being deprecated, but hey, trying to break the back button is far worse, and at least with the legacy app running in a new window the back button will work as the users expects.

"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top