1. 현재페이지에 부를때

onclick="location.href='address'"

2. 새 창에 열때

onclick="window.open('address')"

3. 팝업으로 열기 (주소,팝업창이름,옵션)

onclick="window.open('address','window_name','width=430,height=500,location=no,status=no,scrollbars=yes');"

4. 상위 프레임에 부를때

onclick="parent.location.href='address'"

5. 프레임 지정 링크

onclick="타켓명.location.href='address'"

Comments +0

Leave a Comment

Your email address will not be published.
You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>