history.go('url') issue

后端 未结 3 1711
野性不改
野性不改 2020-12-19 17:58

I\'ve seen that history.go() method can have two types of parameter:

see:

 http://www.w3schools.com/jsref/met_his_go.asp 

But url does not working

3条回答
  •  感情败类
    2020-12-19 18:53

    If you want to use it with an URL just use:

    window.location.href="http://www.whereyouwannago.nl/";
    

    The URL is problably still there for backwards compatibility

提交回复
热议问题