I want to call a javascript directly on the html page to display the calendar directly without clicking. How should I write the declaration and reference part of the html? calender.js is placed in the js folder in the same directory as the current html
First quote the calender file
Call the calender method in window.onload =
window. Where to write onload? I inserted it into the table to display it
<script type="text/javascript" src="calender.js"></script> <script type="text/javascript"> window.onload = function(){ //调用calender方法 }
Thank you. I changed the display mode. Anyway, I just want to display it. Just a date and time