以下是我的设计和代码,我试图重定向到上一页按钮单击哪个不工作。重定向到上一页按钮单击
<asp:ImageButton ID="btn_back" runat="server" ImageUrl="~/go_back.jpg" OnClientClick="Back()" Height="41px" Width="49px" />
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link rel='stylesheet' href='style_demo.css' type='text/css' media='all' />
<style type="text/css">
.auto-style5 {
height: 33px;
}
</style>
<script type="text/javascript">
function Back() {
debugger;
history.go(-2);
return false;
}
</script>
</head>
<body>
没有尝试'window.history.back()'或'window.history.go(-1)' –
我试过,但似乎没有工作 – user2583182