<!DOCTYPE html>Click the button to replace "Microsoft" with "W3CSchool" in the paragraph below:id="demo"Visit Microsoft!onclick="myFunction()"Try itfunction myFunction(){var str=document.getElementById("demo").innerHTML;var n=str.replace("Microsoft","W3CSchool");document.getElementById("demo").innerHTML=n;}