Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

page doesn't go back

Status
Not open for further replies.

cat5ive

MIS
Dec 3, 2004
184
US
Hi,

I want to insert this script inside my asp page. It doesn't work (doesn't go back). Please help!

Thanks in advance
Code:
<% 
  if strflag = request("flag")
   // do something
   // 
%>
   
<script type="text/javascript">history.back();</script>

<% end if 

%>
 
Sorry, This is the one that I inserted.

<script type="text/javascript">history.back();</script>
 
No, still doesn't work. I don't think it's anything wrong with javascript itself. I think it's the way I insert it.
My asp page is in vbscript.
 
Hi.

I am a newbie to javascript and am trying to debug an issue. A variable has a value with 2 dashes(- and another -) For example Location -- 1. Instead of typing 2 dashes somebody had cut and pasted this value into the database. So it shows as one long dash. Now my page gets a javascript error as the 2 dashes are interpreted as a separate character in itself. I get the error

Error: Object required

Any thoughts? Should I be using any encoding rules?

Thanks
njs
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top