将跳转页做为参数,调用以下方法就行: function go_link(url) { var link = document.createElement("a"); link.href = url; document.body.appendChild(link); link.click(); }