代码之家  ›  专栏  ›  技术社区  ›  tmighty

如何关闭Chrome浏览器中的单个选项卡?

  •  0
  • tmighty  · 技术社区  · 2 年前

    我正在开始一个PDF。它正在Chrome选项卡中打开。

    根据 Jimis answer 在我的另一个问题中,发生了以下情况:

    The Process object that opened the PDF doesn't exist anymore after the main Chrome Process presents the PDF content in a tabbed Window. Find the Chrome Process and check the current title of its Window.
    

    现在我想再次关闭此PDF。 我浏览了所有的窗口以找到PDF的名称。

    我通过使用PDF的名称并添加“-谷歌Chrome”来找到它。

    找到以下窗口:

    "test.pdf - Google Chrome"
    

    但是,当我关闭此窗口时,整个浏览器窗口都将关闭,而不仅仅是一个选项卡。

    有人知道为什么以及如何避免这种情况吗?

    0 回复  |  直到 2 年前