How to use an image button as a reset form button

How to use an image button as a reset form button
When we make a form, we often set a submit button and a reset button. Sometimes we may use some small pictures to replace these buttons for the sake of the page's appearance. The method of using pictures for submit buttons is very simple, and I believe everyone knows how to do it. So how do you use an image button as a reset form button? Please continue reading.

Here I assume that I have two images: submit button image ok.gif, reset button image reset.gif

The code to submit a form using an image is: <input type="image" src="ok.gif" alt="" width="93" height="33" border="0" />

The code to use an image as the reset form is: <input type="image" src="reset.gif" alt="" width="93" height="33" border="0" onclick="reset();return false;" />

<<:  MySQL Learning: Three Paradigms for Beginners

>>:  CSS3 speeds up and delays transitions

Recommend

WeChat applet implements form verification

WeChat applet form validation, for your reference...

Master-slave synchronous replication configuration of MySQL database under Linux

The advantage of the master-slave synchronization...

10 HTML table-related tags

In fact many people will say “I’ve seen that table...

This article will help you understand the life cycle in Vue

Table of contents 1. beforeCreate & created 2...

Nginx service 500: Internal Server Error one of the reasons

500 (Internal Server Error) The server encountere...

Tips for importing csv, excel or sql files into MySQL

1. Import csv file Use the following command: 1.m...

HTML table tag tutorial (7): background color attribute BGCOLOR

The background color of the table can be set thro...

Tutorial on processing static resources in Tomcat

Preface All requests in Tomcat are handled by Ser...

Detailed steps to install MySQL 5.7 via YUM on CentOS7

1. Go to the location where you want to store the...

Detailed explanation of the group by statement in MySQL database group query

1: Statement order of grouping function 1 SELECT ...

How to prevent Flash from covering HTML div elements

Today when I was writing a flash advertising code,...

Detailed explanation of making shooting games with CocosCreator

Table of contents Scene Setting Game Resources Tu...

Vue-Router installation process and principle detailed

Table of contents 1. Front-end routing implementa...