搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

How to find text in a button on the page

more options

When viewing a page containing a form, and the form has a button with a label, how do I search for the label to find the button?

When viewing a page containing a form, and the form has a button with a label, how do I search for the label to find the button?

所有回覆 (1)

more options

You want to search using in-page find feature (Ctrl+f)? In-page find will find some button captions, but does not find all of them:

Yes: <button onclick="dosomething">Click me</button>

No: <input type="submit" name="subbtn" value="Click me">

You probably would need to use a script to find those kinds of buttons. (e.g., a bookmarklet or a userscript)