javascript 禁用IE工具欄,導(dǎo)航欄等等實現(xiàn)代碼
更新時間:2013年04月01日 17:05:28 作者:
在處理問題時候遇到的,就順便記錄與大家一起分享下,感興趣的朋友可以參考下哈,希望可以幫助到你
處理問題時候遇到的,就順便記錄下,
function OnOpenWin() {
if (window.name != "OAopenWindow") {
win = window.open("login.aspx", "OAopenWindow", "toolbar=no, menubar=no, scrollbars=no, resizable=yes,location=no,status=no,width=" + (screen.width - 5) + ",height=" + (screen.height - 38) + ",top=0,left=0");
if (win != null) {
window.opener = null; window.open('', '_self', ''); window.close();
}
// else{
// document.all('div_msg').style.display='block';
// }
}
else {
window.moveTo(-3, -3);
setTimeout("self.focus()", 500);
復(fù)制代碼 代碼如下:
function OnOpenWin() {
if (window.name != "OAopenWindow") {
win = window.open("login.aspx", "OAopenWindow", "toolbar=no, menubar=no, scrollbars=no, resizable=yes,location=no,status=no,width=" + (screen.width - 5) + ",height=" + (screen.height - 38) + ",top=0,left=0");
if (win != null) {
window.opener = null; window.open('', '_self', ''); window.close();
}
// else{
// document.all('div_msg').style.display='block';
// }
}
else {
window.moveTo(-3, -3);
setTimeout("self.focus()", 500);
相關(guān)文章
javascript full screen 全屏顯示頁面元素的方法
要想讓頁面的某個元素全屏顯示,就像在網(wǎng)頁上看視頻的時候,可以全屏觀看一樣,該怎么實現(xiàn)呢2013-09-09
整理Javascript基礎(chǔ)語法學(xué)習(xí)筆記
整理Javascript基礎(chǔ)語法學(xué)習(xí)筆記,之前一系列的文章是跟我學(xué)習(xí)Javascript,本文就是進(jìn)一步學(xué)習(xí)javascript基礎(chǔ)語法,希望大家繼續(xù)關(guān)注2015-11-11
JavaScript實現(xiàn)樓梯滾動特效(jQuery實現(xiàn))
這篇文章主要為大家詳細(xì)介紹了JavaScript實現(xiàn)樓梯滾動特效,文中示例代碼介紹的非常詳細(xì),具有一定的參考價值,感興趣的小伙伴們可以參考一下2021-09-09
JavaScript代碼因逗號不規(guī)范導(dǎo)致IE不兼容的問題
這篇文章主要介紹了JavaScript代碼因逗號不規(guī)范導(dǎo)致IE不兼容的問題的相關(guān)資料,需要的朋友可以參考下2016-02-02
JavaScript原生對象之String對象的屬性和方法詳解
這篇文章主要介紹了JavaScript原生對象之String對象的屬性和方法詳解,本文講解了length、charAt()、charCodeAt()、concat()、indexOf()、lastIndexOf()等方法屬性,需要的朋友可以參考下2015-03-03

