You can't make an <a href="........"> fire automatically because it requires a click. Your [window.location="http://localhost/test1/test2/test3/index.cfm";] will fire automatically. If you want the history to fire automatically, put history.back() or history.go(-1) in the <HEAD> section of your page before the window.location. Remember, the JavaScript is interpreted so once a line of code causes a rediretion to another page interpretation stops. What specifically are you trying to do? Bob Filipiak (Contractor) -----Original Message----- From: phumes1 [mailto:phumes1 at rogers.com] Sent: Thursday, March 14, 2002 8:12 AM To: javascript at LaTech.edu Subject: [Javascript] Re: <SCRIPT Hi, How can I incorporate the "history.back" into the <SCRIPT code below so it runs automatically? <a href="javascript:history.back()"><font class="navlinks">[Back] </font></a> <script language="JavaScript" type="text/javascript"> <!-- window.location="http://localhost/test1/test2/test3/index.cfm"; //--> </script> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.evolt.org/pipermail/javascript/attachments/20020314/26e8b828/attachment.htm>