your code here!!</script> or <script src="Put your file here!!"></script> 1. Create a .js file in the folder 2.Put <script> in your HTML Page(index.html)
{ alert("Please enter a list"); } else { var li = document.createElement("li"); li.innerHTML = listName; //加⼊入(innerHTML)你想要的內容 var ul = document.getElementById("list"); ul.appendChild(li); //將<li>物件加到<ul>節點下 }
2.Raise your hand if you have any question. Create another script and link to Google Maps API <script src=" "> </script> http://maps.google.com/maps/api/js?sensor=true
src="http://maps.google.com/maps/api/js?sensor=true"></script> <script src="myLoc.js"></script> <link rel="stylesheet" href="myLoc.css"> </head> …… I think you will get this …