I’m working on a script in JavaScript that simulates mouse clicks of a user
When I put the script into Google chrome console
seems that when I am redirected to new website the script gets deleted
I need a way to preserve the script when we are redirected to another website.
Any ideas how we can perform such a script with out getting stopped by a redirect?
Here is a sample script that I am using
Blockquote
document.getElementsByClassName(‘example’).click();
window.location.href = ‘examplesite.com’;
document.getElementById(‘example’).click();
document.getElementById(‘example’).value = “No”;
document.getElementById(’ example).click();
After the " window.location.href" is performed the
document.getElementById(‘example’).click();
Blockquote
command will not be preformed.
Thank you for your help