Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

determine text truncate javascript

/**
 * Check if an element is truncated.
 */
function isTruncated(el) {
  return el.scrollWidth > el.clientWidth
}
Source by www.textbotonline.com #
 
PREVIOUS NEXT
Tagged: #determine #text #truncate #javascript
ADD COMMENT
Topic
Name
5+8 =