cyfer65 Posted October 13, 2009 Report Share Posted October 13, 2009 is it possible at all to change some code on a webpage that you put into an iframe..??like say i wanted to remove the code style="display: none" from a page that i put into an iframe..would there be anyway to do something like that at all..?? Link to comment Share on other sites More sharing options...
justsomeguy Posted October 13, 2009 Report Share Posted October 13, 2009 You can access the CSS display property of any element through Javascript. Link to comment Share on other sites More sharing options...
cyfer65 Posted October 14, 2009 Author Report Share Posted October 14, 2009 so how would i remove the code style="display: none" from the page in the iframe then..?? Link to comment Share on other sites More sharing options...
Ingolme Posted October 14, 2009 Report Share Posted October 14, 2009 If the iframe is on another domain, you are not allowed to access its content.If it is on the same domain, you can access it through the iframe element itself. Use the contentDocument property for Firefox and other standard browsers, Internet Explorer will access the iframe as if it was a window, I believe.http://w3schools.com/jsref/prop_iframe_contentDocument.asp Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now