2
在我的window.open
中,我已將location
設置爲no
。據我瞭解,這應該打開一個沒有地址欄的彈出窗口。但是,當彈出窗口出現時,它在除Safari之外的所有瀏覽器中都有地址欄。如何在沒有地址欄的情況下打開新窗口?JavaScript Window.Open位置功能不起作用
<script type="text/javascript" language="javascript">
$(document).ready(function() {
var win = window.open("<%= Uri %>", "_blank", "directories=no,location=no,menubar=no,titlebar=no,toolbar=no,status=no");
if (win != undefined) {
window.location.href = '<%= this.Request.UrlReferrer.AbsoluteUri %>';
}
});
許多瀏覽器不會因爲安全原因而禁用某些功能 – Rafael 2010-08-25 21:53:41
新的瀏覽器不會讓你做那樣的惡事。 – 2010-08-25 22:06:51