window.open(url) not opening new web page in the same tab

后端 未结 5 949
情歌与酒
情歌与酒 2021-01-24 08:24

window.open(\"index.php\"); does not open the new page in the same tab, it opens it in a new tab.

I tried window.open(\"index.php\",

5条回答
  •  無奈伤痛
    2021-01-24 08:56

    The window.open function opens a new window(or tab). The window.location changes the url the current tab.

提交回复
热议问题