2011.07.28 18:37

HTML a link에 javascript 연동

JavaScript 부분
<head>
<script type="text/javascript">
function someFunction() {
....
}
</script>
</head>

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


[참고] Using Link Tags with JavaScript
Trackback 0 Comment 0