javascript - 如何从经典 ASP 的历史记录中获取上一页?

标签 javascript asp-classic

有没有一种方法可以获取用户在经典 ASP 中所在的上一页?我正在寻找 JavaScript 中的 history.go(-1) 的等价物。

最佳答案

根据您的需要,您可以使用:

Request.ServerVariables("HTTP_REFERER");

Returns a string containing the URL of the page that referred the request to the current page using an <a> tag. If the page is redirected, HTTP_REFERER is empty.

通常,如果我需要知道用户来自哪里,我会在查询字符串或表单变量中明确设置。

关于javascript - 如何从经典 ASP 的历史记录中获取上一页?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2337979/

相关文章:

xml - 将数据从 VBScript 传递到 XSL

javascript - 如何通过添加/删除 Angular 输入来管理焦点/光标位置?

javascript - 我们能否让这段话变得更简洁一些?

asp-classic - 从经典 Asp 返回对象

asp.net - TLS 1.2 后无法再从经典 ASP 调用 ASMX 服务

iis - asp.net HttpModule可以将请求转发到asp.dll吗?

javascript - Quintus V0.2.0 - 加载 .tmx 文件时出错

javascript - jsTree选择独立于层次结构的复选框

javascript - knockout 数据绑定(bind)到自行生成的 DOM

mysql - 如果其中一列的数据超过 1024 个字符,则不返回记录集 Mysql 8.0 和 Classic ASP