0
後鏈接URL的按鈕這是我的代碼:創建可輸入
<br>
< button onclick="myFunction()">LOLNEXUS< /button>
function myFunction() {
var person = prompt ("Please enter your summoner name", "");
if (person != null) {
document.getElementById("demo").innerHTML =
"http://www.lolnexus.com/NA/search?name="+ person;
}
我的問題是我怎麼有他們進入加入該鏈接,變成了一個URL的名字嗎?