473,378 Members | 1,309 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

what are code for reset button

i want to write code for reset button.
Sep 28 '10 #1
3 2448
Frinavale
9,735 Expert Mod 8TB
Ayan,

Welcome to Bytes!

A reset button, resets the page to it's default state. Only you are going to know what the default state of your page is going to be.

You need to implement a method that handles the button click event. In that method you need to reset all of the controls on the page to the "default state".

-Frinny
Sep 28 '10 #2
NitinSawant
270 100+
Expand|Select|Wrap|Line Numbers
  1. <input type="reset" value="Reset Me" />
Sep 30 '10 #3
Frinavale
9,735 Expert Mod 8TB
Oh yeah I forgot about the HTML input type="reset"!
:)

Thanks NitinSawant :)
Sep 30 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Matt | last post by:
i need to implement a clear button to clear all the fields in the form, but i am thinking i can just use reset button. <input type="reset" name="reset" value="CLEAR"> The first thought is...
4
by: Chris Lane | last post by:
Hi, I have an HTML RESET button and Web Control Button that posts back to the server. Problem is the reset button doesn't work after the postback occurs. Any ideas or suggestions as to why this...
2
by: angus | last post by:
Dear All, I have to implement a reset button in the web form. i think that i can use the web component(button) to get the fired onclick event on the reset button. after the postback, the...
1
by: NancyASAP | last post by:
Thought I'd share this since it took me a long time to get it working. Thanks to a bunch of contributers in Google Groups who shared javascript, etc. The question was: How can I put a reset...
6
by: Charlie Brookhart | last post by:
I am trying to figure out how to code a button labeled reset which will clear the user input as well as clear out the two read-only text boxes. Here is the program code that I have. 'declaring...
7
by: Kermit Piper | last post by:
Hello, How can you clear session variables when a reset button is pressed? I thought I might be able to do something like: <% If request.form("Reset") = "Reset" then Session("variable") =...
3
by: kashif_khan | last post by:
hi everyone, can anybody please tell me why reset button is not working in the following code, i tested it in opera, firefox and konqueror, <form action='edit_links.php' method='POST'...
4
by: tomb | last post by:
Hi, can someone make sense of this? I am using AJAX to populate a <div>, which is working very nicely, except for one thing: My reset button in the resulting <formis dead. When I put a...
2
by: megNAG | last post by:
hi.........i am designing front end for a website using dreamweaver tool.I've dragged the button for reset but i dont know how reset button will clear all the text.can you please tell me the java...
2
by: azura | last post by:
dear sir.. before this i using flash button for clear/reset the form.. it's work but when i upload into server the flash button dissapear... so i had to change it using coding button but i don't...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.