I have a requirement where if I click a button a function is called which will 1. Open a given html link in new tab 2. And access the newly opened html's DOM
I am trying something like this in my function call:
function GenerateReport() {
window.open('./qunit/EditOpenSave.html','_blank');
//////window.location.href = "./qunit/EditOpenSave.html";
document.getElementById("inputTextToSave").value = "Show me !!!";
}
But here it successfully opens the link, while not accessing it's DOM. Please help..