'dialogArguments' Example : dialogArguments « Javascript Properties « JavaScript Reference

JavaScript Reference
1.Event Handlers Reference
2.Javascript Collections
3.Javascript Methods
4.Javascript Objects
5.Javascript Properties
JavaScript Reference » Javascript Properties » dialogArguments 

'dialogArguments' Example

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


Related examples in the same category
1.'dialogArguments' Syntax and Note
2.'dialogArguments' is applied to
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.