Got a classic JS button :
<button class="my-button" OnClick="(windows.open('https://anotherwebsite.com'))">CLICK ME</button>
I would like to trigger this button with a CLI tool like cURL for example.Is that possible ?
I did my research before asking, i found a lot of questions about the opposite (how to curl into a javascript) but not mine.
I already know that u can use selenium w/ python/java... or any other alternatives like Jaunt w/ java but it has to come almost out of the box, i don't want to be stuck with some dependencies and i want it light. I have heard about XHR request but i'm kinda confuse since i saw how to run them with a specific language through methods/functions but not with a cli line tool.
PS : I'm not interested in :
curl https://anotherwebsite.com
It HAS to trigger the javascript just like if i go straight to my chrome dev tool>Console and type windows.open('blabla').