How to change the wording of html submit button

藏色散人
Release: 2023-01-03 09:31:25
Original
5315 people have browsed it

How to change the wording of the html submit button: 1. Directly modify the value attribute, with code such as "onclick="getPasswd()" value="display "..."; 2. Modify the innerHTML of the button, with code such as "type="button" onclick...".

How to change the wording of html submit button

The operating environment of this article: Windows 7 system, HTML5 version, Dell G3 computer.

Modify the text displayed by button in html

1.Implement password input box Visible and hidden

##You can directly modify the value attribute

 密码:
Copy after login

2.

Copy after login

3. innerHTML, innerText, outerHTML, outerTextinnerHTML is an attribute that complies with W3C standards. The use of other attributes is not recommended

The following are the corresponding results of the p

values ofid=innerId

[Recommended tutorial: "

html video tutorial

》】【Recommended tutorial:CSS video tutorial

The above is the detailed content of How to change the wording of html submit button. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!