Question for a website developer

  Michendi 23:25 17 Nov 2004

The browser BACK button can be simulated in a document in every browser - except IE6 - with the behaviour script onclick="window.back()". Assume a button "Close Window". If the above script is associated with this button then when a visitor clicks the button they will go back to the page they came from. In IE6 this script generates an "Error on page". Does any web developer know the correct syntax to get this script to work in IE6?

  SANTOS7 23:29 17 Nov 2004

Hi michendi you would be better posting your question on the webdesign forum where you are more likely to get a faster response from someone who may be able to help,good luck......

  Gaz 25 23:35 17 Nov 2004

Try this link....

<a href="javascript:history.back()">Click to return back to previous page</a>

  Michendi 23:50 17 Nov 2004

To Gaz 25. I agree that should work, but once again it doesn't in IE6. I have removed the "onclick=window.back()" script and replaced it with your script. Works fine in all the other browsers.... but $£*&^" not in IE6. Oh Bill we just love you :-(

  Michendi 00:02 18 Nov 2004

To SANTOS7... Thanks mate, I thought I was in the webdesign forum, oh well it is midnight ;-|

  Michendi 18:19 20 Nov 2004

Solution provided by TARAN works in all browsers.
Syntax is "onclick=history.go(-1)"

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

OnePlus 6 review

Procreate's iPhone app offers new brushes, a larger canvas and better support for the iPhone 8/X

Best multi-room speakers for iPhone & Mac owners

Streaming : comment regarder le lancement de Xiaomi en France ?