Anonymous - Monday, July 28, 2014 1:42 AM:
HI:
I open a in html, I want to get the value from iframe, but it appear a error message when press the buttom.
As follow are the codes:
var iframe0 = document.getElementById("ifra");
var iframe0document=iframe0.contentDocument||iframe0.contentWindow.document;
var inputIframe = iframe0document.getElementById("php_test");
alert(inputIframe.value);
pankaj - Monday, July 28, 2014 8:06 AM:
Hi tsaylang,
Is it possible to post your html code. So that it will be easy to find what's wrong in your code.
Regards,
Pankaj B
Anonymous - Monday, July 28, 2014 10:02 PM:
I created a html and buttom, I want to get the value from but it appear a error message.
as follows are codes for bottom after onClick:
var iframe0 = document.getElementById("ifra");
var iframe0document=iframe0.contentDocument||iframe0.contentWindow.document;
var inputIframe = iframe0document.getElementById("php_test");
alert(inputIframe.value);
as follows are codes for html:
<iframe src="192.168.200.47/test.html" width="200" height="100" scrolling="yes" align="center" frameborder="1" id="ifra">
</iframe>