所以我的问题很简单,但由于我是 html 和 javascript 的新手,我需要帮助。
所以我的 html 代码中有以下 javascript 代码。我想在单独的表格上拥有该功能。如何在我的 html 表单中调用该函数?
<script LANGUAGE="Javascript">
var stampdays = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
var stampmonths = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
var thedate = new Date();
document.write(stampdays[thedate.getDay()] + ", " + stampmonths[thedate.getMonth()] + " " + thedate.getDate() + ", " + thedate.getFullYear());
</script>