The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
I have been using a small JavaScript to display the current year. It is working well with IE, but I recently discovered that it is not displaying right in Mozilla Firefox.
Does anyone know what I should so to fix it, or a better way of accomplishing what this script is supposed to do?<
Code:
<SCRIPT language="JavaScript">
<!--
var today_date= new Date()
var myyear=today_date.getYear()
document.write(myyear)
-->
</script>Does anyone know what I should so to fix it, or a better way of accomplishing what this script is supposed to do?<