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

How to create your own image using Dockerfile

1. Create an empty directory $ cd /home/xm6f/dev ...

JavaScript Array Methods - Systematic Summary and Detailed Explanation

Table of contents Common array methods Adding and...

How to set the style of ordered and unordered list items in CSS

In an unordered list ul>li, the symbol of an u...

Windows 10 + mysql 8.0.11 zip installation tutorial detailed

Prepare: MySQL 8.0 Windows zip package download a...

Detailed explanation of basic operation commands for Linux network settings

Table of contents View network configuration View...

VMwarea virtual machine installation win7 operating system tutorial diagram

The installation process of VMwarea will not be d...

CentOS7.x uninstall and install MySQL5.7 operation process and encoding format modification method

1. Uninstalling MySQL 5.7 1.1查看yum是否安裝過mysql cd y...

Detailed explanation of Vue data proxy

Table of contents 1. What I am going to talk abou...

JavaScript canvas Tetris game

Tetris is a very classic little game, and I also ...

How to clear floating example code in css

Overview The framework diagram of this article is...

Solve the problem of blocking positioning DDL in MySQL 5.7

In the previous article "MySQL table structu...

MySQL stored procedure in, out and inout parameter examples and summary

Stored Procedures 1. Create a stored procedure an...