非常に単純なことをしようとしていますが、検索が空になりました。別のページにリンクするだけのボタンを追加しようとしています。
このような:
$("#something").append("<br><center><input type='button' value='Go' onclick='Link to another page'></center>");
$("#something").append("<br><center><input type='button' value='Go' onclick='location.href=\"url\"'></center>");
urlを何かのようなものに置き換えindex.htmlます。
<a>この種のものにはタグを付けることをお勧めします。<center>...</center>タグを に置き換えます<div style="text-align: center;"></div>。この方法を与えることにより、JavaScript の邪魔にならない方法を使用します。
$("#something").append("<div style='text-align: center;'><input type='button' value='Go' id="button"></div>");
$("#button").click(function(){ location.href = 'url'; });