
Dear Sir, Can you please help in providing the methos for opening up a pop up window just after selecting an option from a drop down.I have three options in dropdown.If i select the option 'Replacement',then a pop up window should open with name,designation and roll number.Please help me Regards Debasis

Hi Friend,
You can try the following code:
1)selectOption.jsp:
<html>
<script>
function check(){
var op = document.getElementById("sel");
var sel = op.options[op.selectedIndex].value;
if(sel=="Replacement"){
window.open('http://localhost:8080/examples/modified/replace.jsp','mywindow','width=500, height=350,toolbar=no,resizable=yes,menubar=yes');
}
}
</script>
<form name="form">
<select id="sel" name="sel" onchange="check();">
<option value="Add">Add</option>
<option value="Delete">Delete</option>
<option value="Replacement">Replacement</option>
</select>
</form>
2)replace.jsp:
<html> <table> <tr><td>Roll No</td><td><input type="text" name="roll"></td></tr> <tr><td>Name</td><td><input type="text" name="name"></td></tr> <tr><td>Desination</td><td><input type="text" name="designation"></td></tr> <tr><td><input type="submit" value="submit"></td></tr> </table> </html>