Back to Java

If java is installed, and enabled, the above Year, Month, Day date display comes from an external file, dispdate.js, containing the function todaydate(), thus such an 'included' function could be available to every page, that has the following code, in it head :-

<script type="text/javascript" src="dispdate.js">

Access to a set of personal library type functions ... think of the possibilities ... Actual code in the body is (although I use a 'class' to get the large red font) :-

<script type="text/javascript">
document.write('<p align="center">Current Date is : <b>');

to produce the above date display ...

Back to Java

The contents of dispdate.js is :-
function todaydate(){
var today_date= new Date();
var myyear=today_date.getYear();
var mymonth=today_date.getMonth()+1;
var mytoday=today_date.getDate();

Back to Java

y-s : javascript file input - use of an 'Active X' object ... to get SIZE of file ... - 1998 Mozilla proposal ... - HTML W3C 'form' specification ... Forms in HTML ... - how to read data from a file ... in the client ... with user's consent ... in Netscape ... uses 'UniversalFileAccess' ); ...

y-s : javascript array - reference on arrays ... and an array from a string -
var words = new String("limit;lines;finish;complete;In;Out"); var swords = words.split(";") - short array reference ...

Back to Java

checked by tidy  Valid HTML 4.01 Transitional