iframe

  • Thread starter Thread starter Lubo¹ ©lapák
  • Start date Start date
L

Lubo¹ ©lapák

I have iframe in webform and I load a page into iframe, then when I click on
button on this page I want go
back on the previous page, which was in iframe before.
How can I do it?
 
If I understand you correctly you are trying to go back in the history of
the iframe.
If this is the case you need to access it as if it was any other type of
frame.
You will not be able to do this from the server side code so you'll need to
use Javascript/VBscript
Make sure that you give the iframe an id

<iframe id='myIframe' src="...></iframe>

Then you can access it using its id.

document.myIframe.history.back();
or
document.myIframe.history.go(-1);

Hope this helps,
Dante
 
Back
Top