Can I get the history.back() function to work in Chrome when using the file:// protocol?

前端 未结 5 1593
别那么骄傲
别那么骄傲 2021-01-08 00:41

I\'m building an application in an environment where I\'m restricted to using the local file system and a browser (i.e. running a server isn\'t an option). I have a generic

5条回答
  •  悲&欢浪女
    2021-01-08 01:26

    late to the party... here is another solution: you can close the window following the window.history.go(-1). this will work because chrome will keep the window open so it will read the next line. other browsers will simply go back.

    
    

提交回复
热议问题