Reload an HTML page just once using JavaScript

后端 未结 4 1795
梦毁少年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:17

    The only way I can think of to do this is by using cookies (or if your on the right platform, sessions) and flag the first time it has reloaded, variables might also work in this case, because we're speaking about IFRAME, but I have never tried such thing.

提交回复
热议问题