使用windows对象啊:
<a href="javascript:window.open('http://www.chinaren.com','','toolbar=no,menuber=no,status=no')"><B color=#0000ff>隐藏浏览器的菜单栏、工具条等</B></a>

解决方案 »

  1.   

    window.open得文档,Opens a new web browser window. 
    方法源  Window  
    实现版本  Navigator 2.0
    Navigator 4.0: 添加了 several new windowFeatures  语法
    open(URL, windowName, windowFeatures) 
    参数
    URL  A string specifying the URL to open in the new window. See the Location object for a描述 of the URL components.  
    windowName  A string specifying the window name to use in the TARGET attribute of a FORM or A tag. windowName can contain only alphanumeric or underscore (_) characters.  
    windowFeatures  (Optional) A string containing a comma-separated list determining whether or not to create various standard window features. These options are described below.  描述
    In event handlers, you must specify window.open() instead of simply using open(). Due to the scoping of static objects in JavaScript, a call to open() without specifying an object name is equivalent to document.open(). 
    The open method opens a new Web browser window on the client, similar to choosing New Navigator Window from the File menu of the browser. The URL argument specifies the URL contained by the new window. If URL is an empty string, a new, empty window is created. You can use open on an existing window, and if you pass the empty string for the URL, you will get a reference to the existing window, but not load anything into it. You can, for example, then look for properties in the window. windowFeatures is an optional string containing a comma-separated list of options for the new window (do not include any spaces in this list). After a window is open, you cannot use JavaScript to change the windowFeatures. The features you can specify are: alwaysLowered  (Navigator 4.0) If yes, creates a new window that floats below other windows, whether it is active or not. This is a secure feature and must be set in signed scripts.  
    alwaysRaised  (Navigator 4.0) If yes, creates a new window that floats on top of other windows, whether it is active or not. This is a secure feature and must be set in signed scripts.  
    dependent  (Navigator 4.0) If yes, creates a new window as a child of the current window. A dependent window closes when its parent window closes. On Windows platforms, a dependent window does not show on the task bar.  
    directories  If yes, creates the standard browser directory buttons, such as What's New and What's Cool.  
    height  (Navigator 2.0 and 3.0) Specifies the height of the window in pixels.  
    hotkeys  (Navigator 4.0) If no (or 0), disables most hotkeys in a new window that has no menu bar. The security and quit hotkeys remain enabled.  
    innerHeight  (Navigator 4.0) Specifies the height, in pixels, of the window's content area. To create a window smaller than 100 x 100 pixels, set this feature in a signed script. This feature replaces height, which remains for backwards compatibility.  
    innerWidth  (Navigator 4.0) Specifies the width, in pixels, of the window's content area. To create a window smaller than 100 x 100 pixels, set this feature in a signed script. This feature replaces width, which remains for backwards compatibility.  
    location  If yes, creates a Location entry field.  
    menubar  If yes, creates the menu at the top of the window.  
    outerHeight  (Navigator 4.0) Specifies the vertical dimension, in pixels, of the outside boundary of the window. To create a window smaller than 100 x 100 pixels, set this feature in a signed script.  
    resizable  If yes, allows a user to resize the window.  
    screenX  (Navigator 4.0) Specifies the distance the new window is placed from the left side of the screen. To place a window offscreen, set this feature in a signed scripts.  
    screenY  (Navigator 4.0) Specifies the distance the new window is placed from the top of the screen. To place a window offscreen, set this feature in a signed scripts.  
    scrollbars  If yes, creates horizontal and vertical scrollbars when the Document grows larger than the window dimensions.  
    status  If yes, creates the status bar at the bottom of the window.  
    titlebar  (Navigator 4.0) If yes, creates a window with a title bar. To set the titlebar to no, set this feature in a signed script.  
    toolbar  If yes, creates the standard browser toolbar, with buttons such as Back and Forward.  
    width  (Navigator 2.0 and 3.0) Specifies the width of the window in pixels.  
    z-lock  (Navigator 4.0) If yes, creates a new window that does not rise above other windows when activated. This is a secure feature and must be set in signed scripts.  
      

  2.   

    帖子太长了.补充
    Many of these features (as noted above) can either be yes or no. For these features, you can use 1 instead of yes and 0 instead of no. If you want to turn a feature on, you can also simply list the feature name in the windowFeatures string. If windowName does not specify an existing window and you do not supply the windowFeatures parameter, all of the features which have a yes/no choice are yes by default. However, if you do supply the windowFeatures parameter, then the titlebar and hotkeys are still yes by default, but the other features which have a yes/no choice are no by default. For example, all of the following statements turn on the toolbar option and turn off all other Boolean options: open("", "messageWindow", "toolbar")
    open("", "messageWindow", "toolbar=yes")
    open("", "messageWindow", "toolbar=1") The following statement turn on the location and directories options and turns off all other Boolean options: open("", "messageWindow", "toolbar,directories=yes") How the alwaysLowered, alwaysRaised, and z-lock features behave depends on the windowing hierarchy of the platform. For example, on Windows, an alwaysLowered or z-locked browser window is below all windows in all open applications. On Macintosh, an alwaysLowered browser window is below all browser windows, but not necessarily below windows in other open applications. Similarly for an alwaysRaised window. You may use open to open a new window and then use open on that window to open another window, and so on. In this way, you can end up with a chain of opened windows, each of which has an opener property pointing to the window that opened it. Communicator allows a maximum of 100 windows to be around at once. If you open window2 from window1 and then are done with window1, be sure to set the opener property of window2 to null. This allows JavaScript to garbage collect window1. If you do not set the opener property to null, the window1 object remains, even though it's no longer really needed. 
    安全性 
    To perform the following operations using the specified screen features, you need the UniversalBrowserWrite privilege: 
    To create a window smaller than 100 x 100 pixels or larger than the screen can accommodate by using innerWidth, innerHeight, outerWidth, and outerHeight. To place a window off screen by using screenX and screenY. To create a window without a titlebar by using titlebar. To use alwaysRaised, alwaysLowered, or z-lock for any setting. 
    要获取 Navigator 4.0 中关于安全性更多的信息,请看“JavaScript 指南”中的第七章“JavaScript 安全性”。 示例
    示例 1. In the following example, the windowOpener function opens a window and uses write methods to display a message: 
    function windowOpener() {
       msgWindow=window.open("","displayWindow","menubar=yes")
       msgWindow.document.write
          ("<HEAD><TITLE>Message window</TITLE></HEAD>")
       msgWindow.document.write
          ("<CENTER><BIG><B>Hello, world!</B></BIG></CENTER>")
    } 示例 2. The following is an onClick event handler that opens a new client window displaying the content specified in the file sesame.html. The window opens with the specified option settings; all other options are false because they are not specified. <FORM NAME="myform">
    <INPUT TYPE="button" NAME="Button1" VALUE="Open Sesame!"
       onClick="window.open ('sesame.html', 'newWin', 
       'scrollbars=yes,status=yes,width=300,height=300')">
    </FORM>
      

  3.   

    Many of these features (as noted above) can either be yes or no. For these features, you can use 1 instead of yes and 0 instead of no. If you want to turn a feature on, you can also simply list the feature name in the windowFeatures string. If windowName does not specify an existing window and you do not supply the windowFeatures parameter, all of the features which have a yes/no choice are yes by default. However, if you do supply the windowFeatures parameter, then the titlebar and hotkeys are still yes by default, but the other features which have a yes/no choice are no by default. For example, all of the following statements turn on the toolbar option and turn off all other Boolean options: open("", "messageWindow", "toolbar")
    open("", "messageWindow", "toolbar=yes")
    open("", "messageWindow", "toolbar=1") The following statement turn on the location and directories options and turns off all other Boolean options: open("", "messageWindow", "toolbar,directories=yes") How the alwaysLowered, alwaysRaised, and z-lock features behave depends on the windowing hierarchy of the platform. For example, on Windows, an alwaysLowered or z-locked browser window is below all windows in all open applications. On Macintosh, an alwaysLowered browser window is below all browser windows, but not necessarily below windows in other open applications. Similarly for an alwaysRaised window. You may use open to open a new window and then use open on that window to open another window, and so on. In this way, you can end up with a chain of opened windows, each of which has an opener property pointing to the window that opened it. Communicator allows a maximum of 100 windows to be around at once. If you open window2 from window1 and then are done with window1, be sure to set the opener property of window2 to null. This allows JavaScript to garbage collect window1. If you do not set the opener property to null, the window1 object remains, even though it's no longer really needed. 
    安全性 
    To perform the following operations using the specified screen features, you need the UniversalBrowserWrite privilege: 
    To create a window smaller than 100 x 100 pixels or larger than the screen can accommodate by using innerWidth, innerHeight, outerWidth, and outerHeight. To place a window off screen by using screenX and screenY. To create a window without a titlebar by using titlebar. To use alwaysRaised, alwaysLowered, or z-lock for any setting. 
    要获取 Navigator 4.0 中关于安全性更多的信息,请看“JavaScript 指南”中的第七章“JavaScript 安全性”。 示例
    示例 1. In the following example, the windowOpener function opens a window and uses write methods to display a message: 
    function windowOpener() {
       msgWindow=window.open("","displayWindow","menubar=yes")
       msgWindow.document.write
          ("<HEAD><TITLE>Message window</TITLE></HEAD>")
       msgWindow.document.write
          ("<CENTER><BIG><B>Hello, world!</B></BIG></CENTER>")
    } 示例 2. The following is an onClick event handler that opens a new client window displaying the content specified in the file sesame.html. The window opens with the specified option settings; all other options are false because they are not specified. <FORM NAME="myform">
    <INPUT TYPE="button" NAME="Button1" VALUE="Open Sesame!"
       onClick="window.open ('sesame.html', 'newWin', 
       'scrollbars=yes,status=yes,width=300,height=300')">
    </FORM>