Netscape可以用模式窗口吗?

wbird 2004-12-24 09:51:09
下边是ie里的用法,但在Netscape(Firefox)中不起作用,请问怎样可以在Netscape中使用模式窗口?

window.showModalDialog(sURL [, vArguments [, sFeatures]])

sURL: String specifying the URL of the document to load and display. While an empty string is accepted (""), it should be noted that this is useless since once a modal dialog has been opened, it cannot be accessed by the page that opened it.

vArguments: Optional. Variant specifying the arguments to use when displaying the document. This parameter can be used to pass a value of any type including an array of values. The dialog can extract the values passed by the caller from the dialogArguments property of the window object.
sFeatures Optional. String specifying the window ornaments for the dialog box. It can be a combination of the following values.

Syntax Description
==================== =================================================================
dialogWidth: number Sets the width of the dialog window.
dialogHeight: number Sets the height of the dialog window.
dialogTop: number Sets the top position of the dialog window relative to the upper-left corner of the desktop.
dialogLeft: number Sets the left position of the dialog window relative to the upper-left corner of the desktop.
center: {yes|no|1|0} Specifies whether to center the dialog window within the desktop. Default is yes.
...全文
144 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhanghk 2005-01-19
  • 打赏
  • 举报
回复
window.open(url, "", "modal=yes")
micker 2005-01-18
  • 打赏
  • 举报
回复
你可以用window.open()来自己模拟。
wen1818 2005-01-18
  • 打赏
  • 举报
回复
可以的
wbird 2005-01-17
  • 打赏
  • 举报
回复
呵呵,孟子这招狠
孟子E章 2004-12-25
  • 打赏
  • 举报
回复
你可以这样

<BODY onblur="window.focus()">
wbird 2004-12-25
  • 打赏
  • 举报
回复
没替代办法吗?
cxz7531 2004-12-24
  • 打赏
  • 举报
回复
我也想知道
deerchao 2004-12-24
  • 打赏
  • 举报
回复
the simple answer is :
you can't...
课程描述:   DEVELOPMENT KIT,V1.2(JDK)开发应用程序和APPLETS。在本课程中您将学会JAVA语言的语法。如何使用JAVA来创建图形用户界面(GUI),事件处理机制,例外处理,通过设计与开发各种JAVA程序来获得实际的编程经验。您也将学到文件输入/输出/(I/O)。多线程和网络的知识(本课程用来代替SL-230/SL-270和SL-270/SL-272)。 谁应该参加:   本课程适用熟悉C或C++的编程人员,也适用于想参加SUN JAVA认证考试的学员。 目标:本课程完成后,您 将具备以下能力 ▲ 使用JAVA编程语言创建JAVA应用程序和APPLES ▲ 定义和描述垃圾搜集,安全和JAVA虚拟机(JAVA) ▲ 描述和使用JAVA语言面向对象的特点 ▲ 开发图形用户界面(GUI)。利用JAVA支持的多种布局管理 ▲ 描述和使用JAVA1.1的事件处理模式 ▲ 使用JAVA语言的鼠标输入,文本,窗口和菜单窗口部件 ▲ 使用JAVA的例外处理来控制程序执行和定义用户自己的例外事件 ▲ 使用JAVA语言的先进的面向对象特点,包括方法重载,方法覆盖,抽象类,接口,   final,static和访问控制 ▲ 实现文件的输入/输出(I/O) ▲ 使用JAVA语言内在的模式来控制多线程 ▲ 使用JAVA的Sockets机制进行网络通信 预备知识:学习本课程,您必须具备以下能力 ▲ 能够编译C或C++程序或者已经参加过SL-110课程,能够创建和编译简单的程序 ▲ 能够使用VI或者Open Windows的文件编辑器 ▲ 使用基本UNIX的命令 ▲ 使用WWW(WORLD WIDE WEB)浏览器,如:NETSCAPE
Js Pop Win

87,904

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧