---
title: "屏蔽浏览器的地址栏和菜单栏，这样可以使系统看起来更正规"
author: "jandroid"
date: "2009-12-24T14:40:00Z"
tags: []
slug: "untitled"
draft: false
lastmod: "2011-11-04T13:06:47Z"
id: 1235096
url: "https://jandroid.iteye.com/blog/1235096"
---

**2.在用户登录验证之后，进入系统，这时效果是要屏蔽浏览器的地址栏和菜单栏，这样可以使系统看起来更正规**

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

1\. Response.Write("&lt;script&gt;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();&lt;/script&gt;");

2\. Response.Write("&lt;script&gt;window.open('Index.aspx','','fullscreen,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes');window.opener=null;window.close();&lt;/script&gt;");

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

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