Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <head> <link id="myLink" rel="icon" href="demo_icon.gif" type="image/gif" sizes="16x16"> </head> <body> <h2>Hello world!</h2> <p>Click the "Try it" button to return the value of the sizes attribute of the link element.</p> <button onclick="myFunction()">Try it</button> <p id="demo"></p> <script> function myFunction() { var x = document.getElementById("myLink").sizes; document.getElementById("demo").innerHTML = x; } </script> </body> </html>