I want to display the "Go Up" link on my site. This link should only be visible if a vertical scrollbar is visible.
How to do it using JavaScript?
thanks
you can check the value of elem.clientHeight < elem.scrollHeight , but it also depends on css properties
elem.clientHeight < elem.scrollHeight
Source: https://habr.com/ru/post/1311191/More articles:Allow registration of various types of users in Drupal 6? - drupalC # - double value increase (1.212E + 25) - floating-pointServicehost throws an error, although it is added to the configuration with netsh - serviceBright progress indicator in java swing application - javaDecreasing opacity on a div without reducing opacity of content - cssRegasm writes the mscoree.dll file to the registry key InprocServer32 - comUsing SHA1 with Microsoft CAPI - cProblem with Makefile with compiling a C ++ program - c ++SEO on login-based website - seoproblem when counting two fields in one query - phpAll Articles