From jQuery Docs:
const height = $(window).height();
const scrollTop = $(window).scrollTop();
http://api.jquery.com/scrollTop/
http://api.jquery.com/height/
More Related Contents:
- Jquery background-image
- Add/Remove Class of Nav Objects on Page Scroll
- jQuery .live() vs .on() method for adding a click event after loading dynamic html
- How to save an image to localStorage and display it on the next page?
- Post data to JsonP
- What does “this” mean in jQuery? [duplicate]
- How can I get the selected text in a textarea? [duplicate]
- Select all elements that have a specific CSS, using jQuery
- How to check if an embedded SVG document is loaded in an html page?
- Make function wait until element exists
- How to convert html table to excel with multiple sheet?
- Cannot handle 302 redirect in ajax and why? [duplicate]
- Get current date in DD-Mon-YYY format in JavaScript/Jquery
- Trees in Twitter Bootstrap [closed]
- jQuery DataTables server-side processing using ASP.NET WebForms
- How to stop event bubbling with jquery live?
- Twitter Bootstrap. Why do modal events work in JQuery but NOT in pure JS?
- Prevent onclick action with jQuery
- Fill available spaces between labels with dots or hyphens
- how to format input box text as I am typing it
- How can I set preview of video file, selecting from input type=’file’
- Bootstrap’s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3
- JavaScript / jQuery closure function syntax
- javascript/jquery – add debounce to a button
- jQuery ajax async: false causes a strange warning?
- Selecting elements without jQuery
- Function not calling within an onclick event
- refresh div with jquery
- focus on next tabindex of HTML element onEnter keypress by JQuery
- How to focus an input field on Android browser through javascript or jquery