Originally posted by Priyanka Chopda:
Hi,
I have this javascript fuunction and wehn I try to call it on onclick event it say object doesn't support this property?? Can anyone help me out here
thanks in advance
-PC
-----------------------------------
function today(form){
var d = new Date();
var todaydate= d.getFullYear()+"-"+(d.getMonth() + 1)+"-"+d.getDate();
document.form.modificationDate.value=todaydate;
}
-------------------------------------
Hi Priyanka,
I just created a simple example and it worked.
I think the problem is @ document.
form.modificationDate.value=todaydate;
Did you create FORM tags in your html code and/or did you give a form name.
If you did not create a form name just call any name and replace it with the
form Hope this helps.
[ September 26, 2003: Message edited by: sam patel ]