当前位置: 代码迷 >> ASP.NET >> Response.Write("<script language='javascript' type='text/javascript'>history.back()</script>")
  详细解决方案

Response.Write("<script language='javascript' type='text/javascript'>history.back()</script>")

热度:4532   发布时间:2013-02-26 00:00:00.0
Response.Write("<script language='javascript' type='text/javascript'>history.back()</script>");
Response.Write( " <script   language= 'javascript '   type= 'text/javascript '> history.back() </script> ");
为什么上面这句话,不能实现浏览页面的后退。
Response.Write( " <script   language= 'javascript '   type= 'text/javascript '> alert( 'Hello   World ') </script> ");都可以。


<head   runat= "server ">
        <title> Untitled   Page </title>
</head>
<script   language   = 'javascript '   type= 'text/javascript '>
alert( "Hello   JavaScript ");
window.history.back();
</script>
<body>
我把它放到head下面可以实现浏览页面的后退.

------解决方案--------------------------------------------------------
Response.Write( " <script language= 'javascript ' type= 'text/javascript '> window.history.back() </script> ");
------解决方案--------------------------------------------------------
Response.Write( " <script language= 'javascript ' type= 'text/javascript '> window.history.back() </script> ");

------解决方案--------------------------------------------------------
干吗用Response.Write
------解决方案--------------------------------------------------------
答案还是比较一致的
------解决方案--------------------------------------------------------
Response.Write( " <script> history.go(-1); </script> ");
------解决方案--------------------------------------------------------
history.go(-1)
------解决方案--------------------------------------------------------
Page.RegisterStartupScript( "s ", " <script> history.go(-1); </script> ");

------解决方案--------------------------------------------------------
seft.history.go(-1)
------解决方案--------------------------------------------------------
你得瀏覽器禁止js了把? 上面各位同學的答案都是正確~~
------解决方案--------------------------------------------------------
ls的厉害,就是这个原因
------解决方案--------------------------------------------------------
Response.Write( " <script language= 'javascript ' type= 'text/javascript '> javascript:window.history.back(); </script> ");
------解决方案--------------------------------------------------------
强人。。。
------解决方案--------------------------------------------------------
佩服
  相关解决方案