Show Modeless Dialog (window.showModelessDialog(..))
<html>
<body>
<script language="JavaScript">
function openWindow() {
var myArguments = new Object();
myArguments.param1 = document.all.myColor.value;
window.showModelessDialog("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