bboks.net™

HTML a link에 javascript 연동 본문

Web/HTML

HTML a link에 javascript 연동

bboks.net 2011. 7. 28. 18:37
JavaScript 부분
<head>
<script type="text/javascript">
function someFunction() {
....
}
</script>
</head>

A Link 부분
<a href="javascript:someFunction();">클릭</a>


[참고] Using Link Tags with JavaScript