Jump to content

[SOLVED] To open a new window


suma237

Recommended Posts

Not much of a php question.

 

<script language="Javascript">
function doThis(value){
if(value == "2"){
window.open('ajax2.php','view','height=350, width=550,scrollbars=1')
}
}
</script>
<form name="form">
<select name="option" onChange="doThis(this.value)">
<option value="1">Open</option><option value="2">Close</option>
</select>
</form>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.