자바스크립트질문입니다

자바스크립트질문입니다

QA

자바스크립트질문입니다

본문

<input type="button" class="minibutton" value="大阪市" onclick="location.href='third';">
<input type="button" class="minibutton" value="おすすめタグ" onclick="location.href='third';">
<input type="button" class="minibutton" value="エリアで絞り込む" onclick="location.href='third';">
<input type="button" class="minibutton" value="検索" onclick="location.href='third';">
<input type="button" class="minibutton" value="その他" onclick="location.href='third';">

이 버튼들을 자바스크립트로 나열 할 수 있나요? 모든페이지에 중복되어서, 자바스크립트로 처리하려고합니다

이 질문에 댓글 쓰기 :

답변 1


<script>
    var str = "<input type=\"button\" class=\"minibutton\" value=\"大阪市\" onclick=\"location.href='third';\"> <input type=\"button\" class=\"minibutton\" value=\"おすすめタグ\" onclick=\"location.href='third';\"> <input type=\"button\" class=\"minibutton\" value=\"エリアで絞り込む\" onclick=\"location.href='third';\"> <input type=\"button\" class=\"minibutton\" value=\"検索\" onclick=\"location.href='third';\"> <input type=\"button\" class=\"minibutton\" value=\"その他\" onclick=\"location.href='third';\">";
    document.write(str);
</script>
답변을 작성하시기 전에 로그인 해주세요.
전체 0 | RSS
QA 내용 검색
  • 개별 목록 구성 제목 답변작성자조회작성일
  • 질문이 없습니다.

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT