-1

In my javascript code, I want to retrieve the value of a TAG placed in page_1 (which id is: "token"), i've tried the following but it does not work:

<iframe id="Myiframe" src="http://page_1">

<script>
   doc = document.getElementById('Myiframe');   
   value = doc.getElementById("token").value;
</script>

Any idea?

Phiter
  • 14,570
  • 14
  • 50
  • 84
Addon
  • 75
  • 1
  • 1
  • 9

1 Answers1

0
document.getElementById("myText").defaultValue
Souhaieb Besbes
  • 1,485
  • 17
  • 30