A. 언어/HTML

[HTML] 링크걸기

E-HO 2017. 7. 7. 03:14
728x90

●간단하게 클릭해서 링크로 이동할 때

1
<a href ="http://tigerpoo11.tistory.com">클릭</a>
cs


●버튼을 눌러서 링크로 이동할 때

1
<input type = "button" value="버튼" onclick="location.href='http://tigerpoo11.tistory.com'"></button>
cs


 

1
2
3
4
5
6
7
8
<html>
  <meta charset="utf-8";
    <body>
        <a href ="http://tigerpoo11.tistory.com">클릭</a>
        <input type = "button" value="버튼" onclick="location.href='http://tigerpoo11.tistory.com'"></button>
    </body>
</html$pass_an=$got->fetch_array(MYSQLI_BOTH);>
 
cs

간단하게 이런식으로 코드를 작성하면

이렇게 완성!

반응형