Home >Web Front-end >JS Tutorial >javascript disable IE toolbar, navigation bar, etc. implementation code_javascript skills

javascript disable IE toolbar, navigation bar, etc. implementation code_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:38:421316browse

When you encounter a problem, just record it by the way,

Copy the code The code is as follows:

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);
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn