JavaScript Reference/Javascript Methods/showModelessDialog

Материал из Web эксперт
Перейти к: навигация, поиск

"showModelessDialog()" Example

<script language="JavaScript">
function openWindow() {
   var myArguments = new Object();
   myArguments.param1 = document.all.myColor.value;
   window.showModelessDialog("", myArguments, ""); 
<select id="myColor">
    <option value="red">Red</option>
    <option value="green">Green</option>
    <option value="blue">Blue</option>
    <option value="yellow">Yellow</option>
<button onclick="openWindow();">Open window</button>

"showModelessDialog()" is applied to

| Applied_To     |window                                                        |

"showModelessDialog()" Syntax, Parameters and Note

Opens a modeless dialog window.
window.showModelessDialog(param1, param2, param3)
    param1   Required; the URL of the document to display.
    param2   Optional; an object with added properties. The modeless window will 
                       receive this object using its dialogArguments property.
    param3   Optional; a semicolon-delimited list of one or more of the style 
                       attributes listed at