Idocs Guide to HTML back to <BUTTON TYPE="...">

Script to Return Today's Date

Here's the script used to return today's date:

<SCRIPT TYPE="text/javascript">
<!-- 
// SCRIPT FOR THE "TODAY" BUTTON
function today()
{
var now,rv;
now = new Date();
var rv = 
   now.getMonth() + "/" + 
   now.getDate()  + "/" + 
   now.getYear();
return rv;
}
// -->
</SCRIPT>

This allows us to create a button which puts today's date in a form:

application date:


Recommended Resources

web hosting tutorials
Credit Help
Search the Internet
Search Engine Help
Low Fat Lifestyle
Internet Traffic
Web Hosting
Web Design

Discount Hotel Reservations

Search The Internet


Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.
About the author

All Rights Reserved, Copyright © Free-HTML-Tutorials.com 2003
A service of 1stHostWeb.com