obtain mouse coordinates through chrome extension

后端 未结 4 1510
夕颜
夕颜 2021-02-06 11:22

I am curious to know if there is a way to get the mouse coordinates through a chrome extension and then use these coordinates to check if the person has clicked in that position

4条回答
  •  囚心锁ツ
    2021-02-06 11:56

    Once you have the mouse coordinates, you can make use of "target" attribute with "_blank" value to open an url in a new tab.
    URL Display Name

    If you are using any javascript framework, you can provide a click event and in its controller, you can make use of default navigate method to navigate.

提交回复
热议问题