Results 1 to 3 of 3
Thread: Creating Clear and Exit Buttons
- 03-24-2010, 03:36 PM #1
Member
- Join Date
- Mar 2010
- Posts
- 1
- Rep Power
- 0
Creating Clear and Exit Buttons
Hi, I'm trying to create two buttons for clearing my information, and another for terminating the program, or and Exit button. Here is my code as of now. the project i'm doing is listing my grades, averaging them, but i need a clear button and an exit button for it to be complete.
<html>
<head><title>Computer Science Grade Calculator</title></head>
<body>
<h2 align="center">Grade Calculator<h2>
<hr width="86%" size="1" />
Student Name: <tr>
<td><input type="text" name="identifier" value="Edward Holt" size="10" onChange="event_handler"/></td>
</tr>
</br>
Class: <tr>
<td><input type="text" name="identifier" value="CS140 EB" size="7" onChange="event_handler"/></td>
</tr>
</br>
Lab HW Quiz 1 : <tr>
<td><input type="text" name="identifier" value="7" size="4" onChange="event_handler"/></td>
</tr>
</br>
Project : <tr>
<td><input type ="text" name="identifier" value="4" size="4" onChange="event_handler"/></td>
<td><input type ="text" name="identifier" value="9" size="4" onChange="event_handler"/></td>
<td><input type ="text" name="identifier" value="8" size="4" onChange="event_handler"/></td>
<td><input type ="text" name="identifier" value="8.5"size="4" onChange="event_handler"/></td>
</tr>
</br>
Tests: <tr>
<td><input type ="text" name="identifier" value="60" size="4" onChange="event_handler"/></td>
<td><input type ="text" name="identifier" value="75" size="4" onChange="event_handler"/></td>
</tr>
</br>
Final Exam: <tr>
<td><input type ="text" name="identifier" value="100" size="4" onChange="event_handler"/></td>
</tr>
</br>
<tr>
<td><input type=button value="Clear" onClick ='
"" '></td>
<td><input type="button" value="Exit" onClick =
</td>
- 03-24-2010, 04:30 PM #2
you can use html or javascript to accomplish these requirements. i'm asking me why you put this thread in a java forum?
- 03-24-2010, 05:08 PM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
This forum is about Java, related technologies. Please don't post those types of unrelated stuff here. You can ask your question in html/css/etc forum.
Similar Threads
-
creating buttons
By defactor in forum New To JavaReplies: 5Last Post: 01-02-2010, 02:06 PM -
Radio Buttons - Reset - clear dot
By dbashby in forum New To JavaReplies: 5Last Post: 10-14-2009, 12:17 AM -
How to exit the program by typing "exit"?
By Laythe in forum New To JavaReplies: 6Last Post: 08-19-2009, 08:32 PM -
System.exit 0 or 1?
By antgaudi in forum New To JavaReplies: 3Last Post: 11-13-2008, 06:33 PM -
How to exit the program..
By coco in forum New To JavaReplies: 1Last Post: 08-01-2007, 05:56 PM


LinkBack URL
About LinkBacks

Bookmarks