html input radio 跟文字對齊方法

Posted by: 邱小新 at 下午3:42:00 in
<label style="display: inline-flex;">
<input type="radio" style="margin-top:1.5;">TEST</label>

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);

javascript get query string

Posted by: 邱小新 at 下午5:15:00 in

QueryString 就是網址問號後面的字串,在 javascript 儲存在 window.location.search。