javascript change url port

Posted by: 邱小新 at 下午4:54:00 in
  • setTimeout("window.location.port=document.form.http_lanport.value", 1000);
  • 改變 port 之後,會馬上重新載入頁面。
  • Location: port property

include a javascript file

Posted by: 邱小新 at 上午11:29:00 in
var script = document.createElement("script");
script.src = "/help.shtml";
document.head.appendChild(script);