Skip to content Skip to sidebar Skip to footer

Can I Get Javascript To Automatically Click On A Link On Another Page Once That Page Loads?

I want to create a link on page A that links to page B and also clicks on a link on page B once page B has finished loading. Is this possible or would I have to code javascript on

Solution 1:

If you simply want to redirect to another page you can check the document.referrer on your site to see where the person came from (url) and then redirect with location.replace("http://example.com/myformpage.htm")

Solution 2:

You're right, JS is pretty much run in contained environment (i.e., the original page).

Post a Comment for "Can I Get Javascript To Automatically Click On A Link On Another Page Once That Page Loads?"