Forum Moderators: open

Message Too Old, No Replies

Back Button

Why is this not working

         

chrman

10:27 pm on Sep 26, 2001 (gmt 0)



I have a back button in a bottom frame that i want to tell the main frame to go back one step. when i use the coding

<form>
<input type="button" onClick="parent.otherFrameName.history.back()" value="Back">
</form>

it works great but of course i am stuck with the button it gives as default. I tried to modify it to use my own button. When i enter it as this

<a href="javascript:;" onClick="parent.main.history.back()">
<img src="back.gif" border="0" width="54" height="35"></a>

it does not work. What i am really asking, is how can i put the main frame back one step AND use my own gif as the button.

andrey_sea

10:32 pm on Sep 26, 2001 (gmt 0)

10+ Year Member



You may want to try this:

<a href="javascript:parent.main.history.back();">
<img src="back.gif" border="0" width="54" height="35"></a>

or even this (you may want to add onMouseOver event handler for changing cursor style):
<img src="back.gif" border="0" width="54" onClick="parent.main.history.back()" height="35">

chrman

10:35 pm on Sep 26, 2001 (gmt 0)



That worked perfect. Thanks.