I have an iframe. I am setting the content of the iframe (different domain - like www.google.com) through a form submission.Currently it's scrolling attribute is set to 'no'.
<iframe name="testFrame" id="testFrame" frameborder="1" scrolling="no" width="500" height="200"></iframe>
<form name="testForm" id="testForm" action="http://www.google.com" target="testFrame"></form>
<button name="testBtn" value="submit" onclick="submitForm();">submit</button>
I want to put scroll to this iframe dynamically.
$("#testFrame").attr('scrolling','yes');
This is working in Firefox but not in IE. Also tried with:
document.getElementById("testFrame").style.overflow="scroll";
No luck...:( Help me please...