ASP.NET中,我有a.html頁(yè)面,然后在后臺(tái)寫(xiě)了這樣的代碼Response.Redirect("b.html");然后我在b頁(yè)面操作完成后,想關(guān)閉頁(yè)面,能不能用<input type="button" id="btnClose" onclick="window.close();" value="關(guān)閉">來(lái)關(guān)閉b頁(yè)面?JS的書(shū)中說(shuō),window.close()只能用來(lái)關(guān)閉通過(guò)JS代碼的方式打開(kāi)的頁(yè)面,是不是這種response.redirect()打開(kāi)的頁(yè)面就不能關(guān)閉了,只能這樣寫(xiě)?fucntion closeWindow(){ window.open('','_parent',''); window.close();}期待大神幫忙解決!
- 2 回答
- 0 關(guān)注
- 1034 瀏覽
添加回答
舉報(bào)
0/150
提交
取消