改这行:
PreView = window.open("_blank", value, "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,left=0 top=0");

解决方案 »

  1.   

    to ether,
    window.open("","","")中的三个引号的含义是什么?
      

  2.   

    我是用window.open("about:blank","_blank","")达到的目的,谁能讲讲window.open的用法吗?
      

  3.   

    open(URL, WindowName[, WindowFeatures])前两个容易理解,第3个可选参数很多:
    alwaysLowered:
      (JavaScript 1.2) 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:
      (JavaScript 1.2) 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:
      (JavaScript 1.2) 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 bardirectories:
      If yes, creates the standard browser directory buttons, such as What's New and What's Cool.height: ...hotkeys:
      (JavaScript 1.2) If no (or 0), disables most hotkeys in a new window that has no menu bar. The security and quit hotkeys remain enabled. innerHeight:
      (JavaScript 1.2) 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: ...location: If yes, creates a Location entry field.menubar: If yes, creates the menu at the top of the window.outerHeight: (JavaScript 1.2) 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.personalbar: (JavaScript 1.2) If yes, creates the Personal Toolbar, which displays buttons from the user's Personal Toolbar book folder.resizable: ...screenX, screenY: ...scrollbars: ...status: If yes, creates the status bar at the bottom of the window.titlebar: (JavaScript 1.2) If yes, creates a window with a title bar. To set the titlebar to no, set this feature in a signed scripttoolbar: If yes, creates the standard browser toolbar, with buttons such as Back and Forward.width: ...zlock: (JavaScript 1.2) 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.最好找本书看看。  :)