본문 바로가기

카테고리 없음

[Script 이론 코드] 링크방법

<body>


<a href="NewFile.html">NewFile.html로 이동</a>

<br><br>


<form action="NewFile.html">

<input type="submit" value="NewFile.html로 이동">

</form>

<br>


<button type="button" onclick="myfunc()">버튼</button>

<br>


<script type="text/javascript">

function myfunc() {

location.href = "NewFile.html";  // java Script 링크사용방법

}




</script>




</body>