Closed Bug 208393 Opened 22 years ago Closed 22 years ago

history.go(-1) from iFrame activates back from the parent, not in the iFrame

Categories

(Core :: DOM: Navigation, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 199471

People

(Reporter: skrile, Assigned: radha)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4b) Gecko/20030507 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4b) Gecko/20030507 When the onclick event "=history.go(-1)" is placed in an <a> tag on a page displayed in an iFrame, the action does not work properly. When the hyperlinked text is clicked, the parent frame is sent back one, rather than the iFrame. Reproducible: Always Steps to Reproduce: 1.Start with a simple page 2.Place an <iFrame> object on the page. 3.Create two more pages. One with a regular link to the other. 4.Make the first of the two pages the default for the iFrame as in: <iFrame src="pageone.htm"> 5.The second page should have a tag like <a href=# onclick="history.go(-1)">Back</a> 6.Click on the "Back" link and the page CONTAINING the iFrame will be sent back one step in the browser session's history, not the iFrame. Expected Results: Sent the iFrame back one in its history.
Dupe of bug 199471?
dupe of bug 199471 (in which case it should be fixed in 1.4RC1) ?
*** This bug has been marked as a duplicate of 199471 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Component: History: Session → Document Navigation
QA Contact: chrispetersen → docshell
You need to log in before you can comment on or make changes to this bug.