-1

I have a HTML file,with a label. Somewhere inside the page in a DIV i have an iframe,which it calls a HTML file. This HTML files calls a Javascript. I want to be able to change the innerHTML of the label in my JS file. Is there any way?

pedrag
  • 37
  • 2
  • 8

1 Answers1

0

If I understood you, you can use this js to change html in parent page from the iframe:

window.parent.document.getElementById('label')
equinox
  • 701
  • 5
  • 8