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

+1

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

+7

You wrote documebt.getElementById

0

there is a iframe with id "show"