anchor() 예제
<button onclick="homzzang()">클릭</button> <script> function homzzang() { var txt = "홈짱닷컴"; var res = txt.anchor("hz"); alert(res); } </script> 결과보기
<button onclick="homzzang()">클릭</button>
<script>
function homzzang() {
var txt = "홈짱닷컴";
var res = txt.anchor("hz");
alert(res);
}
</script>
결과보기
결과값: <a name="hz">홈짱닷컴</a>
비표준이라, 모든 브라우저에서 동일 결과값 기대 곤란.