Spawn New Window and back button

I’m using the Spawn New Window option and would like my visitors to be able to use a back button that takes them to the previous page within the pop-up window (iPad friendly mode).

However when I create a button with the following link:


javascript:history.back()

the pop-up window disappears and the browser window goes to the previous page. How can I use a back button in the iPad friendly pop up window?

(It works OK in the ‘non-iPad friendly’ version.)


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Anyone an idea?

Thanks in advance!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

In the iPad friendly mode, the “page” that you see inside the popup is a div, generated on the fly and inserted into the page DOM (document object model) by JavaScript. It does not have a history of its own, and it does not affect the history of the browser window either. back() or history.go(-1) only affect the browser’s history stack. If you wanted to have the illusion of a back button, you would need your own history management system in the script, and then you would need to run another JavaScript element update to replace the contents of the div with the previous contents.

Walter

On Jan 9, 2012, at 5:10 PM, Marco72 wrote:

I’m using the Spawn New Window option and would like my visitors to be able to use a back button that takes them to the previous page within the pop-up window (iPad friendly mode).

However when I create a button with the following link:


javascript:history.back()

the pop-up window disappears and the browser window goes to the previous page. How can I use a back button in the iPad friendly pop up window?

(It works OK in the ‘non-iPad friendly’ version.)


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Walter, that makes sense.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options