Hi all
I’m pretty new to this so this is going to sound very basic to most of you. Please excuse my ignorance.
I’ve created a new tab but can’t seem to be able to use this line to write some text to it. These are the relevant lines:
var OrderPage = window.open(“Order.html”,“_blank”);
OrderPage.document.getElementById(“test”).innerHTML = “Hello”;
where “test” is the id for a paragraph element in Order.html
The new tab (Order.html) opens ok but the text does not appear at all on it. Can someone please tell me what I’m doing wrong?