Suppose that we have a website called example.com
In this website we have a single button which when clicked runs a javascript function let’s say myFunction()
Is it possible to create an http request from the url bar of firefox so that when this http request is finished, the button would be clicked as well?
For instance, it would be good if I could include this url to the url bar of my browser
example.com + javascript:myFunction()
which would run the function after loading the page without having me to click on the button
however this does not work for me.
thank you in advance
Nope, that’s not possible.
You can’t append JS in a url. You can however use JS instead of a url, so
javascript:myFunction()