How can I close previous browser tabs with use of a weblink?

Kleykens Jochen 20 Reputation points
2024-05-03T12:56:51.46+00:00

Is there a way to close previous browser tabs through API where we sent an URL to open the default Edge browser?

So in the URL we must sent the command for this action, I came thus far that the previous tabs go blank but not close with following part in the string of the API: &close_other_win=true

It would be beter for our users if the tabs closes as they use the API multiple times a day and end up with numerous open tabs in their browser.

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,162 questions
{count} votes

Accepted answer
  1. ShiJieLi-MSFT 8,026 Reputation points Microsoft Vendor
    2024-05-06T02:30:55.5833333+00:00

    Hi @Kleykens Jochen ,

    Please consider creating an Edge extension. Edge extension can help you interact with Microsoft Edge, including closing tabs through tabs API.

    If you need to distribute the extension to your users, you can refer to Alternative ways to distribute extensions.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best Regards,

    Shijie Li

    0 comments No comments

0 additional answers

Sort by: Most helpful