<html><div style='background-color:'><DIV></DIV>
<DIV></DIV>
<DIV>I am developing an HTMLHelp system for an app. I want to use graphic back and forward buttons. I wanted the buttons to appear only if the history showed there was a back or forward to go to. First I tried this</DIV>
<DIV>&nbsp;</DIV>
<DIV>function loadArrows(){<BR>&nbsp;&nbsp;var behind = eval(history.go(-1));<BR>&nbsp;&nbsp;var ahead = eval(history.go(+1));<BR>&nbsp;&nbsp;if (behind != "undefined") {<BR>&nbsp;&nbsp;&nbsp;document.LeftArrow.src="sds-06b_02.gif";}<BR>&nbsp;&nbsp;else{<BR>&nbsp;&nbsp;&nbsp;document.LeftArrow.src="sds-06a_02.gif";}<BR>&nbsp;&nbsp;if (ahead != "undefined") {<BR>&nbsp;&nbsp;&nbsp;document.RightArrow.src="sds-06b_04.gif";}<BR>&nbsp;&nbsp;else{<BR>&nbsp;&nbsp;&nbsp;document.RightArrow.src="sds-06a_04.gif";}<BR>&nbsp;}</DIV>
<DIV>&nbsp;</DIV>
<DIV>I call this function in the body onload event. But, if I load another page, then go back to this page, the page always jumps forward. If I'm on a page and load this page it does a continual reload loop. I have tried a few different permutations of the variables</DIV>
<DIV>&nbsp;</DIV>
<DIV>var behind = eval(history.previous);</DIV>
<DIV>&nbsp;</DIV>
<DIV>or</DIV>
<DIV>&nbsp;</DIV>
<DIV>var behind = eval(history.back());</DIV>
<DIV>&nbsp;</DIV>
<DIV>I can't really use history.length because it only tells me how many items are in the history, not if they were back or forward. Any ideas?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Cutter</DIV>
<DIV></DIV>
<DIV><A href="http://www.falcon-knives.com/">Falcon Knives</A></DIV>
<DIV></DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://go.msn.com/bql/hmtag_itl_EN.asp'>http://explorer.msn.com</a><br></html>