I'm trying to find the exact height and width of a browser's viewport, but I suspect that either Mozilla or IE is giving me the wrong number. Here's my method for height:  var viewportHeight = window.innerHeight ||...
What is viewport in HTML? Could you give some examples on how to access the viewport details?...
I want to animate a scroll to the bottom of the viewport with jQuery. Is there a plugin available which isn't overkill (i.e. without a huge feature set for this small task);  Is there a plugin available or a way to do this natively with jQuery?...
I've just read a nice article on viewport which left me with a couple questions regarding Visual viewport vs Layout viewport on mobile devices.     the width and the height of the layout viewport are equal to whatever   can be shown on the screen...
I'm trying to use a JavascriptExecutor to open a new tab in IE9 from selenium webdriver:  public void openTab() {     String url = webDriver.getCurrentUrl();     String script = "var     a=document.createElement('a');a.target='_bl...
I have a full page slideshow using jQuery(window).height() and it works fine on most browsers, however I checked it out on my phone (Android Browser & Dolphin) and the slideshow just keeps growing endlessly, well beyond the height of the view-por...
I've got a webpage that looks and functions okay in both desktop and mobile browsers IMO, but I've been unable to solve a particular UX functionality.  When a user clicks/taps on a text field for searching, the mobile browsers zoom to the tex...
Is there a way to measure the offset of the window in jQuery, in order than I might compare the positions of a 'fixed' element and a relatively positioned one?  I need to be able to tell how far the window is scrolled so I can use the figure...
How can I get the first DOM element that is visible in a viewport?  PS: the first DOM element in a page will not be the first "visible" element when I scroll to the middle or bottom of the page...
Is there an easy way to check whether the user scaled the page (using pinch on mobile devices)?  Thought verge.js would help, but I don't know what I can compare viewportH with....

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.