Menu
So what i want to do is open a new window. I want to use target.
so i open a new window with target “test_win”
now i want to use js to get the html content of “test_win” is this possible?
i tried with non target method:
[code]
<script type=”text/javascript”>
var abc =””;
function open_win()
{
abc = window.open(“http://www.google.com/”,”subWindow”,”HEIGHT=200,WIDTH=350″)
}
function gethtml() {
alert(abc.document.getElementById(“content”).innerHTML);
}
</script>
the above gethtml() functions gives me an error “permission denied” >_<