how to read controls from iframe.

Posted by Jayakumars under ASP.NET AJAX on 2/9/2012 | Points: 10 | Views : 1971 | Status : [Member] [MVP] | Replies : 1
hi

How to Retrieve Iframe input values.

my code like this but i did not retrieve them

function RetUrl() {
var iframe = document.getElementById("ifrm1");
var content = iframe.contentDocument;
alert(content);
for (var i = 0; i < content.length; i++) {
alert(content[i].childNodes.innerHTML);
}
}

Mark as Answer if its helpful to you


Responses

Posted by: Nishantcomp2512 on: 2/10/2012 [Member] Starter | Points: 25

Up
0
Down
function RetUrl()

{
var iframe = document.getElementById("ifrm1").innerHTML;
var atag=iframe.getElementbyTagName("a");
}


Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response