javascript脚本 [英] javascript scripts

查看:59
本文介绍了javascript脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好


我想点击键盘快捷键

并解析当前网页,然后在
$ b $中做一些事情b网页(例如包含特定

字符串的自动保存链接,自动保存图像,自动点击特定按钮

等)


可以你告诉我该怎么做?


我使用Opera浏览器


谢谢

hello

I would like to hit a keyboard shortcut
and parse the current webpage and then do stuff in the
webpage (eg autosave links that contain a specific
string, autosave images, autoclick specific buttons
etc etc)

can you tell me how to do that?

I use Opera Browser

thanks

推荐答案

欢迎来到TSDN。


对于键盘快捷键,请参阅此示例。它为您提供按下键的键码。您还可以查看alt / shift / ctrl键的此参考号。 。


您可以使用click()方法模拟按钮点击,请参阅链接
Welcome to TSDN.

For keyboard shortcuts, see this example. It gives you the keycode of the key pressed. You can also see this ref. for alt/shift/ctrl keys.

You can simulate button clicks with the click() method, see link.


谢谢


你能给我一个脚本的示例吗?识别一个按钮并在它出现时点击它(每当我访问它包含它的网页时)?


谢谢
thanks

can you give me a guided example of a script that will recognize a button and click it whenever it appears (whenever I visit a webpage that it contains it) ?

thanks


你可以找到所有输入元素:
You could look for all input elements:
展开 | 选择 | W rap | 行号


这篇关于javascript脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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