HTML how do I insert dynamic date in webpage

前端 未结 8 2065
暖寄归人
暖寄归人 2021-01-05 14:40

I have a static webpage, nothing changes dynamically. However the client wants a date insert into text within the page. The date will always be the current daet plus one day

8条回答
  •  星月不相逢
    2021-01-05 15:35

    Use JavaScript and insert the date onLoad.

    Take a look here for a working example: http://jsfiddle.net/xGDvp/

    This will update the date as follows: February 5, 2011

    Your HTML:

    
    

    Your Javascript

        
    

提交回复
热议问题