body properties example 2
RUN
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <style type="text/css"> </style> </head> <body> <h1>Học lập trình miễn phí tại freetuts.net</h1> <p>Đây là nội dung của trang...</p> <button onclick="myFunction()">Xem kết quả</button> <p id="result"></p> <script> function myFunction(){ document.body.innerHTML = "<p>Đây là nội dung của trang sau khi đã sửa lại...</p> "; } </script> </body> </html>
PHÓNG TO