Ask a moderator to move this thread if you like.
Thanks. i’ve found one solution to get contents from iframe…
It works fine while getting contents from local . but its not working for website because of permission problem
var myIFrame = document.getElementById(iFrameName);
var content = myIFrame.contentWindow.document.body.innerHTML;
alert('content: ’ + content);
<input type=‘button’ onclick=“getContentFromIframe(‘Iframe_links’)” value=‘Click’ name=‘sub’ />
<iframe src=“http://localhost/test/test.php” frameborder=‘0’ width=‘100%’ height=‘100%’ scrolling=‘auto’ style=‘display:block;border:0px;overflow:scroll;’ id=‘Iframe_links’ name=‘Iframe_links’> </iframe>
Are the two documents on the same server, like Cups mentioned?
If not, this won’t work.
No both documents are in the different server… thats the problem … is there any other way to access from different server…