crop_rotate
Run
<!DOCTYPE html> <html> <body> <p>Click the button to see how many attributes the button element have.</p> <button id="myBtn" onclick="myFunction()">Try it</button> <p>The result should be 2 (the button element's id and onclick attributes).</p> <p><strong>Note:</strong> In Internet Explorer 8 and earlier, the attributes property will return a collection of all <em>possible</em> attributes for the element, and will, in this example, display a much higher number than 2.</p> <p id="demo"></p> <script> function myFunction() { var x = document.getElementById("myBtn").attributes.length; document.getElementById("demo").innerHTML = x; } </script> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxib2R5Pg0KDQo8cD5DbGljayB0aGUgYnV0dG9uIHRvIHNlZSBob3cgbWFueSBhdHRyaWJ1dGVzIHRoZSBidXR0b24gZWxlbWVudCBoYXZlLjwvcD4NCg0KPGJ1dHRvbiBpZD0ibXlCdG4iIG9uY2xpY2s9Im15RnVuY3Rpb24oKSI+VHJ5IGl0PC9idXR0b24+DQoNCjxwPlRoZSByZXN1bHQgc2hvdWxkIGJlIDIgKHRoZSBidXR0b24gZWxlbWVudCdzIGlkIGFuZCBvbmNsaWNrIGF0dHJpYnV0ZXMpLjwvcD4NCg0KPHA+PHN0cm9uZz5Ob3RlOjwvc3Ryb25nPiBJbiBJbnRlcm5ldCBFeHBsb3JlciA4IGFuZCBlYXJsaWVyLCB0aGUgYXR0cmlidXRlcyBwcm9wZXJ0eSB3aWxsIHJldHVybiBhIGNvbGxlY3Rpb24gb2YgYWxsIDxlbT5wb3NzaWJsZTwvZW0+IGF0dHJpYnV0ZXMgZm9yIHRoZSBlbGVtZW50LCBhbmQgd2lsbCwgaW4gdGhpcyBleGFtcGxlLCBkaXNwbGF5IGEgbXVjaCBoaWdoZXIgbnVtYmVyIHRoYW4gMi48L3A+DQoNCjxwIGlkPSJkZW1vIj48L3A+DQoNCjxzY3JpcHQ+DQpmdW5jdGlvbiBteUZ1bmN0aW9uKCkgew0KICB2YXIgeCA9IGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJteUJ0biIpLmF0dHJpYnV0ZXMubGVuZ3RoOw0KICBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgiZGVtbyIpLmlubmVySFRNTCA9IHg7DQp9DQo8L3NjcmlwdD4NCg0KPC9ib2R5Pg0KPC9odG1sPg==