Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

if text exists in element using javascript

if (
  (
    document.documentElement.textContent || document.documentElement.innerText
  ).indexOf('Done successfuly') > -1
) {
  // Do something...
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #text #exists #element #javascript
ADD COMMENT
Topic
Name
8+7 =