Hi guys,
Im using iframe.
And I need some help. I just want to get the value of the option that is being selected on the next page. Pls see code below.
Like if i select the 500 from the option it will display the value '500' on the frame page.
Thanks in advance.
Im using iframe.
And I need some help. I just want to get the value of the option that is being selected on the next page. Pls see code below.
Like if i select the 500 from the option it will display the value '500' on the frame page.
Code:
<script type="text/javascript">
window.onload=function(){
document.getElementById('opt').onchange=function(){
document.getElementById('myframe').style.height=this.value+'px';
}}
</script>
<select size="10" id="opt">
<option selected="selected">Change IFRAME height</option>
<option value="300">Change IFRAME height to 300px</option>
<option value="500">Change IFRAME height to 500px</option>
<option value="1000">Change IFRAME height to 1000px</option>
<option value="100">Change IFRAME height to 100px</option>
<option value="50">Change IFRAME height to 50px</option>
<option value="150">Change IFRAME height to 150px</option>
</select>
<br><br>
<iframe src="result_one.htm" id="myframe" style="border:0px;width:400;">
//output here or on frame the value of height
</iframe>
Thanks in advance.