i have 3 frames on on the right and other on the left , the right frame submit data by java script,the left frame i need to get the current elements on the right frame by javascript i used this code :
it give me an error permission is denied or access is denied , how can bypass this error and get the elements ?
Code:
var myIFrame = parent.document.getElementById(iFrameName);
var theiframebody = (myIFrame.contentDocument)? myIFrame.contentDocument.body: myIFrame.Document.body;
try{
alert(myIFrame.theiframebody.getElementById('element').value);
}catch(e){
alert('error');
}
Comment