首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

运用 showModalDialog

2012-11-06 
使用 showModalDialogCode example: http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/r

使用 showModalDialog

Code example: http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/refs/showModalDialog2.htm

Linked from the following button is an extended version of the above script, which demonstrates many of the features available for creating a custom dialog box.

Code example: http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/refs/showModalDialog.htm

Neither modal nor modeless HTML dialog boxes support text selection or the standard shortcut menu for copy operations; however, you can imitate this functionality by using script with TextRange objects and event handlers for onmousedown and onmousemove, as in the following example.

Code example: http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/refs/showModalDialogLaunch.htm

?

使用dialogArguments 得到父窗口传递的参数

?

window.showModalDialog(url,'',

? "dialogHeight: 550px; dialogWidth: 750px;center: yes; help: no;resizable: no; status: no;");

热点排行