Last active
August 29, 2015 14:11
-
-
Save zry656565/0b7c9f5a8583c6efd91f to your computer and use it in GitHub Desktop.
[front-end] Get document object of iframe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//original javascript | |
var doc = document.getElementById('iframeId').contentWindow.document; | |
//jquery | |
var doc = $('#iframe').contents(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment