2013-03-10 68 views
0

我已經在我的應用程序中實現了這段代碼。 如何更改它以防止滾動並且URL出現在瀏覽器中?如何停止滾動和網頁工具欄的顯示?

function openWindow() { 
    window.open('default.aspx', null, 'height=200, width=400, status=yes, toolbar=no, menubar=no, location=no'); 
    return false; 
} 

回答

1

你不能隱藏地址欄,這是瀏覽器不會讓你關閉的事情。

防止滾動可能最好通過CSS在你打開的任何內容中處理。樣式塊中的內容如下

body {overflow: hidden} 

應該停止滾動條的顯示。