Skip to content

Instantly share code, notes, and snippets.

@tieutantan
Last active December 23, 2016 12:17
Show Gist options
  • Save tieutantan/5337c084905bf23ec72e to your computer and use it in GitHub Desktop.
Save tieutantan/5337c084905bf23ec72e to your computer and use it in GitHub Desktop.
Set iframe show on x,y positioning ?
via CSS - http://jsfiddle.net/sNSMw/
via JS - You might want to put this part in the BODY tag, not the IFRAME tag: onload="window.frames.scrollTo(300,300)"
<iframe name="itunes" src="http://itunes.apple.com/us/album/threads/id” frameborder="0" width="500" height="600" onload="window.frames['itunes'].scrollTo(250,250)"></iframe>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment