Define dialog arguments : window : Javascript Objects JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Javascript Objects » window »

 

Define dialog arguments



    
<html>
<body>
<script language="JavaScript">
function function1() {
    var myArguments = new Object();
    myArguments.param1 = document.all.myColor.value;
    window.showModalDialog("http://www.navioo.com", myArguments, '')

</script>
<select id="myColor">
<option value="red">Red</option>
<option value="green">Green</option>
<option value="blue">Blue</option>
<option value="yellow">Yellow</option>
</select>
<button onclick="function1();">Open Window</button>
</body>
</html>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Javascript Objects
» window