简体   繁体   中英

Continue JavaScript after open new Tab via Button Click

I'm quiet new to JavaScript and need your help concerning the following problem: I've written a JavaScript to subscribe automatically to a gym class every monday at 7 am. I have to click a button that's opening a new tab where I have to fill my personal data. The URL of the new tab is variable so I cant do it via

 window.open(URL,"_self")

Is there a way to continue the script in the new tab or open the website in the same tab?

Thanks!

Because of the objections mentioned, that doesn't sound feasible to me - at least in this form. If you want to run a script on the external website, then simply use a browser solution such as:

There you can install your script and have it automatically fill out your registration.

If you want to automate this completely without doing anything on your part, then you will not be able to avoid an (external server-side) solution such as a NodeJS application with puppeteer ( https://github.com/puppeteer/puppeteer ) running every X days.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM