An open API service indexing awesome lists of open source software.

https://github.com/probably-not/getxpathforuserselection

Useful functions for getting the XPath of user selected data on a webpage.
https://github.com/probably-not/getxpathforuserselection

javascript xpath

Last synced: about 2 months ago
JSON representation

Useful functions for getting the XPath of user selected data on a webpage.

Awesome Lists containing this project

README

          

# getXpathForUserSelection
Useful functions for getting the XPath of user selected data on a webpage.

## Usage
As long as you have imported this script into your page so that it is available in your code, the usage is as such:

```
var xpath = getXPathForUserSelection()
```

This will return the xpath query for the selected text.