Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the Document</title> </head> <body id="bodyId" something="non-standard"> <script> alert(document.body.id); // bodyId // non-standard attribute doesn’t yield a property alert(document.body.something); // undefined </script> </body> </html>