後に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になって入力した名前を持っているんですか?あなたのページの
<a href="" id="demo">Custom link</a>
を持っていると仮定すると