Methods In javascript:
1. Document. referrer obtains the url2 and document of the previous page. URL: Get the URL of the current page (note: the URL must be capitalized) 3. The history object of JavaScript. The history object is the property of the window object. The history object has no event, but there are four attributes as follows: in the current window, the URL lenght of the currently displayed document indicates the length of the History Table. Next indicates the next URL in the History Table. Previous indicates the previous URL in the History Table. Description: IE does not support the current of the history object, the next and previous attributes of the history object have three methods: Back (), forward (), and go (). These methods can call the documents contained in the History Table. The back () method is used to load the previous page in the history table. It is equivalent to the back button forward () method in the browser to load the last page in the history table. It is equivalent to the forward button Go () in the browser () method to enter a specific document in the history table. You can take integer or string parameters. Go (n) WHEN n> 0, load the N document of the forward number in the History Table; when n = 0, import the current document; when n <0, load the N document of the subsequent number in the History Table go (String) The URL string in the History table contains the most recent document of this substring.
Methods in ASP. NET:
Httpcontext. Current. Request. url get current page url page. Request. urlreferrer. tostring () Get previous page url