|
-
Sep 15th, 2000, 08:04 AM
#1
Hi!
I'm looking for a command or a way to go back to the previous page from within VBScript. Sort of the VBScript alternative for "window:history.go(-1)" in JavaScript.
If anybody knows, I'd be very grateful.
Marcel Boeren
[email protected]
-
Sep 15th, 2000, 01:13 PM
#2
It is the same as in JavaScript:
Code:
<SCRIPT language=vbscript>
window.history.go -1
</SCRIPT>
-
Sep 18th, 2000, 02:47 AM
#3
So how do I implement it?
I'm in VBScript, and at a certain point (after a certain check fails) I want to go back 1 page, so what do I type?
If I just type "window.history.go -1" or even "response.redirect window.history.go -1" it gives me the following error message:
Microsoft VBScript runtime error '800a01a8'
Object required: 'window'
-
Sep 18th, 2000, 03:13 AM
#4
Hyperactive Member
you can do this in ASP ..
<%
response.redirect request.servervariables("HTTP_REFERER")
%>
you have to put it before the <html></html> tag or you need to put:
response.buffer=true
in the begining of the page.
this will get you back to the page that it came from ..
In the beginning the universe was created. This has made a lot of people very angry and is generally regarded as a bad idea.
- Douglas Adams
The Hitchhiker's Guide to the Galaxy
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|