I want to store a table data in an html file and access the table data from another HTML file for which I am doing the following
<iframe id ="mytabledata" src="data.html" style="display:none"></iframe>
var thisvar = document.getElementById("mytabledata").contentWindow;
var gt=thisvar.document.getElementById("demovar");
I have a p
tag demovar
in the data.html file but it is returning NULL
value and I cant access the file data.html.
What is wrong here?