Home  >  Q&A  >  body text

javascript - In easyUI, window.location.href=url; how to jump to a new tab instead of the original tab?

In easyUI, window.location.href=url; how to jump to a new tab instead of refreshing on the original tab?

迷茫迷茫2713 days ago625

reply all(2)I'll reply

  • 巴扎黑

    巴扎黑2017-05-17 10:03:05

    Open a new tab page
    parent.window.createTab("title of the new page", url);
    Close the current tab page
    parent.$(".easyui-tabs").tabs('close', "Current tab Page title");

    reply
    0
  • 某草草

    某草草2017-05-17 10:03:05

    Theoretically, the creation of tabs is the permission of the browser, not the permissions of the page. There is a horizontal relationship between tab pages. .
    Even if you can create it, you may still encounter compatibility issues, so it is recommended to use the target method of the a tag to trigger it

    reply
    0
  • Cancelreply