How can I set the documentURI to a website of my choice. In a javascript function I have:
var sitePage = document;
sitePage.documentURI = "www.google.com"
Does not work, the URL stays on the original page.
Ideally I would like to click on an link in the page using its id:
sitePage.getElementById("link").Click();
But I get
'Type Error: cannot read property 'click' of 'null'
I have "link" and "www.google.com" as strings in 2 variables.