On the ASP. NET page, if you want to return to the previous page. You can call the window. History. Back () method of JavaScript. In most cases
Is valid, but if there is a button in the interface and other controls execute the window. open () JavaScript method to open other pages,
The window. History. Back () method is not easy to use because JavaScript saves the opened page address to the history object. Therefore, if
In the dry window. open () method, the window. History. Back () method of the corresponding number of times must be executed before execution.
The window. History. Back () method returns the previous page.
Knowing the cause of the problem solves the problem. We only need to call the window every time. run window once after the open () method. history. back () to clear the page address of the histroy object. The problem is solved smoothly !!
InstanceCodeIt is implemented in vs2005, and is also applicable in vs2003. Vs2008 not tested!
Instance Source: http://files.cnblogs.com/redleaf1995/testHistory.rar