Yammaski Posted May 3, 2010 Share Posted May 3, 2010 I need the width and height from an image that's in an iframe.But I can't get into the iframe. var pic = window.frames[blackgif].document.getElementById('sticker');<iframe id="blackgif"><img id="sticker" src="Crying Wolf.gif"></iframe> Link to comment Share on other sites More sharing options...
justsomeguy Posted May 10, 2010 Share Posted May 10, 2010 That image isn't actually in the iframe, the image is what shows if the browser does not support iframes. If the browser does support the iframe then you would specify the document to load using the src attribute. Link to comment Share on other sites More sharing options...
Yammaski Posted May 10, 2010 Author Share Posted May 10, 2010 Thanks,I solved it with CSS, hidden. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.