以下是我的設計和代碼,我試圖重定向到上一頁按鈕單擊哪個不工作。重定向到上一頁按鈕單擊
<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