创建指向在页面上运行Javascript函数的网页的链接 [英] Create a link to a web page that runs a Javascript function on the page

查看:86
本文介绍了创建指向在页面上运行Javascript函数的网页的链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用HTML和Javascript创建指向网页的链接,该链接会在网页上自动运行特定的Javascript功能(例如,书签)?我有一个突出显示正则表达式所有匹配项的小书签,我想创建一个指向 http://en.wikipedia的超链接. org ,它会在 http://en.wikipedia.org 上自动运行书签.

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 bookmarklet that highlights all matches of a regular expression, and I want to create a hyperlink to http://en.wikipedia.org that automatically runs the bookmarklet on http://en.wikipedia.org.

推荐答案

您可以使用 GreaseMonkey 或与您所用浏览器等效的内容.

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

这篇关于创建指向在页面上运行Javascript函数的网页的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆