I was wondering how I can avoid to use onClick here. I don’t want to use it since when I do so, if I hit “Back” in my browser, it doesn’t return me to the page where this code was but to two pages back and this is annoying!
Here is my code:
<table style="border :1px solid white;font-size:8pt;color:#FFFFFF;font-family:Arial Narrow"
width="240" height="30" CELLSPACING="0" >
<tr onMouseOver="style.backgroundColor='#986828'"
onMouseOut="style.backgroundColor=''"
onClick="window.location.replace('presse.php')"style="cursor: pointer;">
location.replacereplaces the current page in the browser history.Try this instead:
onClick="location = 'presse.php';"