function google() { window.location.href="http://www.google.co.jp"; } function yahoo() { window.open("http://www.yahoo.co.jp"); } onclick="location.href='http://arise.work'">@rise /button>
function selectlink() { location.href = document.sample2Form.sample2Select.value; }
document.getElementById("s3Btn"); s3Btn.addEventListener("click", function(){ alert(location.href); });
document.getElementById("s4Btn"); s4Btn.addEventListener("click", function(){ location.reload(); });
PHPのgetでデータを受け取る場合 var s5Select = document.getElementsByName("s5Select"); s5Select[0].addEventListener("change", function(){ var a = document.s5Form.s5Select.value; location.href = "index.php?class=" + a; });