hasattribute js
snippet in javascript

hasattribute js

user1947


 var x = document.getElementById("myBtn").hasAttribute("onclick");