简体   繁体   中英

Triggering a button click when going on page

Is there a way to have a user click on a link that takes them to a page and triggers a (or multiple) button click(s). I imagine this would use Js.

More info: This page wouldn't have the code in it. I imagine the code would be in the link.

尝试这个

$(button-selector).trigger('click');

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