check if html element is present - Javascript

check if html element exists

Snippet Code


  
Rate this page :
  [ 0 votes]

check if a html element is present.

if(document.getElementById('ElementID'){ alert("This element is present"); }

Tags


Ask Questions

Ask Question