How to Use the iFrame to Hold a State
When a user refreshes a webpage that contains an inline frame, also known as iFrame, the page might display the default content of the iFrame instead of the one that was previously viewed. To prevent this from happening, you can edit the page's source code to instruct the user's browser to remember the last content viewed in an iFrame.
Instructions
-
-
1
Locate the hypertext markup language file that contains the source code of the webpage on your hard drive. Right-click on it and select "Open with." Click either on the name of an HTML editor if you have installed such a program on your computer or on "Notepad."
-
2
Replace the opening iFrame tag in your page's source code by the following one:
<iframe src="X" refresh="no">
Change "X" to the Web address that contains the source code of your iFrame. -
-
3
Click on "File" and select "Save."
-
1