Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Congratulations and Javascript question


Message #1 by "Arnold Matthews" <arnoldm@m...> on Mon, 6 Nov 2000 15:35:52 -0500
Dear Wrox

Thank you so much for the wonderful help in your programmer books!!!  Could
you get some sort of knighthood for your wonderful contributions to the
programmer world?

I have arrived at Ch 15 in Beginning ASP 3 book with no hitches and am
writing a similar app using SQL Server tables.

However, I do no know where to get help on the question below.  Could a book
or source for this info be recommended or could someone give me a hint.

I put a "back" button on my pages and fiddled for a couple of hours to get
it to work with my extremely limited knowledge of JavaScript.

The function is (thanks to dream weaver):

function MM_callJS(jsStr) { //v2.0

  return eval(jsStr)

and the code is:

<a href onClick="MM_callJS('if (history.length > 0){history.back()}')"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('BackButton','','images/BackButtonDark.gif',1)"><i
mg name="BackButton" border="0" src="images/BackButtonSmallDark.gif"
width="90" height="32"></a>

This seems to work properly with IE 5.  However, I tried it on a friend's
computer using Netscape 4 and all the back buttons ALWAYS go back to the
home page.

Many thanks,  Arnold Matthews


  Return to Index