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?