Reload an HTML page just once using JavaScript

后端 未结 4 1804
梦毁少年i
梦毁少年i 2020-12-02 01:40

How can I reload an HTML base web page only once? I am using history.go(0); with function onLoad in body tag but i want to run it only once. Please

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-02 02:04

      
    

    Due to the if condition the page will reload only once. Hope this will help.

提交回复
热议问题