Skip to content Skip to sidebar Skip to footer

Create A Link To A Web Page That Runs A Javascript Function On The Page

Using HTML and Javascript, is it possible to create a link to a web page that automatically runs a specific Javascript function on the web page (e. g., a bookmarklet)? I have a boo

Solution 1:

You could use something like GreaseMonkey or something equivalent for the browser your on.

Solution 2:

This is pretty much the textbook definition of cross site scripting, so no, generally that is not something you can do. The user must run the bookmarklet. What you can look into is making an addon or extension for browsers.

Post a Comment for "Create A Link To A Web Page That Runs A Javascript Function On The Page"