/    Sign up×
Community /Pin to ProfileBookmark

back button with frames not working

I have placed a back and forward buttons in a framed web page and it seems to work fine except it won’t go back to the first page. The code looks like this:

<a href=”” onclick=”history.go(-1); return false;”><IMG src=”images/back.png” border=”0″></a>

<a href=”” onclick=”history.go(+1); return false;”><IMG src=”images/forward.png” border=”0″></a>

To see the sample go to [url]http://69.57.169.16/~freespot/maxtest3.htm[/url] and click on the test link towards the bottom and click through a few more links, then go back. You will see it doesn’t make it all the way back to the first page, just to the second page. Any ideas. I have tried using the parent.main.history.go and can’t get that to work at all, errors out. Thanks for any help.

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @netmerchants spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...