Socket
Book a DemoInstallSign in
Socket

page-position

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

page-position

Retrieve the position of an element relative to the page.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

100% test coverage

page-position

Retrieve the position of an element relative to the page.

Returns an object describing a rendered element's top, right, bottom, and left distances from the document's polar origin.

Installation

Install via npm:

$ npm i page-position --save

Usage

var pagePosition = require('page-position');
pagePosition(document.getElementById('target'));

FAQs

Package last updated on 30 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts