'showModalDialog()' Example : showModalDialog : Javascript Methods : JavaScript Reference examples (example source code) Organized by topic

JavaScript Reference
C++
PHP


JavaScript Reference  »  Javascript Methods   » [  showModalDialog  ]   
 



'showModalDialog()' Example

    
<html>
<body>
<script language="JavaScript">
function openWindow() {
   var myArguments = new Object();
   myArguments.param1 = document.all.myColor.value;
   window.showModalDialog("http://www.java2s.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="openWindow();">Open window</button>
</body>
</html>

    
      
      
Related examples in the same category
1.  'showModalDialog()' Syntax, Parameters and Note
2.  'showModalDialog()' is applied to
























Home| Contact Us
Copyright 2003 - 07 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.