The onclick Event
The onclick event is used to trigger a function when an element is clicked on.
Click the button to trigger a function that will output "Hello World" in a p element with id="demo".
function myFunction() { document.getElementById("demo").src = "https://www.google.com/maps/d/embed?mid=1SMjkYxzd4wm4o6Y8b_eHs7-XRz6ZFprK"; } function myFunction1() { document.getElementById("demo").src = "https://www.google.com/maps/d/embed?mid=1Zsh8hWyXXFz9tHzvC0J5LNP2ZTDiuDE_"; }