use dom with iframe content | SoloLearn: Learn to code for FREE!


use dom with iframe content

When I use dom to the iframe content, it shows a error : getElementById() is not a function. The javascript I used like this: var frame = document.getElementById("show") frame.documentWindow.documebt.getElementById("a")

9/20/2017 4:51:40 PM

Tony Yang

2 Answers

New Answer


You wrote documebt.getElementById


there is a iframe with id "show"