我要在这个页面打开时以popup或fullscreen或其他不能打印,不能保存的状态出现。怎么做到?(30分)

  • 主题发起人 主题发起人 狼牙
  • 开始时间 开始时间

狼牙

Unregistered / Unconfirmed
GUEST, unregistred user!
<html>
<head>
<title>
a
</title>
</head>
<body>
这里面是内容。。。(这个内容不定的。)
</body>
</html>
然后我要在这个页面打开时以popup或fullscreen或其他不能打印,不能保存的状态出现。怎么做到?
 
不由你这个网页操作,而是调用你的网页的网页控制。
  一般情况我们是用这样的形式调用的:<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.

 
接受答案了.
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
I
回复
0
查看
795
import
I
后退
顶部