屏蔽浏览器的地址栏和菜单栏,这样可以使系统看起来更正规 .

来源:互联网 发布:help desk是什么软件 编辑:程序博客网 时间:2024/05/16 23:34
在用户登录验证之后,进入系统,这时效果是要屏蔽浏览器的地址栏和菜单栏,这样可以使系统看起来更正规

实现的方式:使用登录验证之后,弹出一个新的窗体,但是弹出窗体的大小和位置还要设定,最好是覆盖整个窗口

1.      Response.Write("<script>window.open('Index.aspx','','width='+screen.width+',height='+screen.height+',top=0,left=0,minmizebutton=yes,maxmizebutton=yes,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes');window.opener=null;window.close();</script>");2.      Response.Write("<script>window.open('Index.aspx','','fullscreen,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes');window.opener=null;window.close();</script>");

这两种效果有点差别,差别在于:width='+screen.width+',height='+screen.height+',top=0,left=0,minmizebutton=yes,maxmizebutton=yes

和'fullscreen的不同,全屏会全部屏蔽,但是实际上用户一般很习惯使用最大小化按钮

原创粉丝点击