Javascript打开窗口

strOut="<script language='javascript'>";
    strOut+="/n"+" if (!window.opener || window.opener!='login'&&window.name!='EIS')";
    strOut+="/n"+" {";
    strOut+="/n"+"   window.opener = 'login';";
    strOut+="/n"+"   var feature = 'scrollbars=no,menubar=no,resizable=no,location=no,status=no,toolbar=no';";
    strOut+="/n"+"   var win = window.open('login.jsp','EIS',feature);";
    strOut+="/n"+"   win.resizeTo(screen.width,screen.height);";
    strOut+="/n"+"   win.moveTo(0,0);";
    strOut+="/n"+"   window.close();";  
    strOut+="/n"+" }";
    strOut+="/n"+"</script>";
    strOut+="/n"+"<script language='javascript'>";
    strOut+="/n"+" function FocusTextBox(page)";
    strOut+="/n"+" {";  
    strOut+="/n"+"   document.all(page).focus();";
    strOut+="/n"+" }";
    strOut+="/n"+"</script>";

你可能感兴趣的:(Javascript打开窗口)