+ 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")

20th Sep 2017, 4:51 PM
Tony Yang
Tony Yang - avatar
2 Answers
+ 7
You wrote documebt.getElementById
11th Nov 2017, 7:13 AM
qwerty
qwerty - avatar
0
there is a iframe with id "show"
11th Nov 2017, 7:17 AM
Tony Yang
Tony Yang - avatar