I tried with console log with some JavaScript but I didn't get success. such as
console.log(document.getElementsByTagName('input')[0].attributes[0])
I tried with console log with some JavaScript but I didn't get success. such as
console.log(document.getElementsByTagName('input')[0].attributes[0])
Please check the following:
<html>
<body>
<input id = "text1" type ="text"/>
</body>
<script>
function dumpCSSText(element){
var s = '';
var o = window.getComputedStyle(element);
for(var i = 0; i < o.length; i++){
s+=o[i] + ':' + o.getPropertyValue(o[i])+';';
}
return s;
}
console.log(dumpCSSText(document.getElementById("text1")));
</script>
</html>