똑같은 메뉴 클릭시 그룹마다 다른 페이지 가게하는 방법
본문
똑같은 메뉴 클릭시 그룹마다 다른 페이지 가게하는 방법 좀 알려주세요~~
답변 2
<script>
function goPage(group){
if(group=="a") document.location.href='naver.com';
if(group=="b") document.location.href='daum.net';
if(group=="c") document.location.href='nate.com';
}
</script>
<a href="#GOPAGE" onClick="javascript: goPage('그룹변수');"> 메뉴 </a>
많은 도움이 되었습니다. 감사합니다.
답변을 작성하시기 전에 로그인 해주세요.