codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Using Form button onClick to return to prior URL  dollworld at 07:01 on Friday, April 07, 2006
 

I am attempting to use onClick in a Form button to return to a previous URL.
The previous URL is "grabbed" using:
Session ("PageURL")=Request.ServerVariables("SCRIPT_NAME")+"?"+ Request.QueryString;

and then on the form:
<input type="button" value="PLEASE CONTINUE SHOPPING" onclick= "location.href='<%=Session("PageURL")%>'">

but it does not work - I think the syntax may be wrong?

Help please











CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Need some help making a C++ program
•  Re: webservice status
•  Re: windows service - web service - com
•  urgent........regarding to swings
•  download file
•  getElementsByTagName("head")[0].appendChild(js);
•  ?0:1; ?????? What this means?
•  ASP You Tube Clone Script
•  encrypt and decrypt query string


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007