不由你这个网页操作,而是调用你的网页的网页控制。
一般情况我们是用这样的形式调用的:<a href=~>你的网页</a>,这样无法控制。
改成JavaScript的windows.open就可以控制你那些内容了,具体格式如下:
open method (window object)
Opens a new web browser window.
语法
[windowVar = ][window].open("URL", "windowName", ["windowFeatures"])
windowVar is the name of a new window. Use this variable when referring to
a window's properties, methods, and containership.
URL specifies the URL to open in the new window. See the location object
for a description of the URL components.
windowName is the window name to use in the TARGET attribute of a <FORM>
or <A> tag. windowName can contain only alphanumeric or underscore (_)
characters.
windowFeatures is a comma-separated list of any of the following options
and values:
toolbar[=yes|no]|[=1|0]
location[=yes|no]|[=1|0]
directories[=yes|no]|[=1|0]
status[=yes|no]|[=1|0]
menubar[=yes|no]|[=1|0]
scrollbars[=yes|no]|[=1|0]
resizable[=yes|no]|[=1|0]
width=pixels
height=pixels
You may use any subset of these options. Separate options with a comma. Do
not put spaces between the options.
pixels is a positive integer specifying the dimension in pixels.