javascript 禁用IE工具栏,导航栏等等实现代码_javascript技巧
程序员文章站
2022-05-11 20:05:36
...
处理问题时候遇到的,就顺便记录下,
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);
复制代码 代码如下:
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);
上一篇: php中英文判断
下一篇: 数据库优化实践【索引篇】