Javascript/location.href

sample1
sample1code
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>
sample2
sample2code
function selectlink() {
  location.href = document.sample2Form.sample2Select.value;
}
sample3
sample3code
document.getElementById("s3Btn");
s3Btn.addEventListener("click", function(){
  alert(location.href);
});
	
sample4
sample4code
document.getElementById("s4Btn");
s4Btn.addEventListener("click", function(){
  location.reload();
});
	
sample5
sample5code
PHPのgetでデータを受け取る場合
var s5Select = document.getElementsByName("s5Select");
s5Select[0].addEventListener("change", function(){
  var a = document.s5Form.s5Select.value;
  location.href = "index.php?class=" + a;
});