아이프레임 질문입니다!
관련링크
http://자바스크립트
32회 연결
본문
지금
<body>
<img src="123.jpg" alt="" />
<img src="123.jpg" alt="" />
<img src="123.jpg" alt="" />
<img src="123.jpg" alt="" />
<iframe src="mydomain.co.kr" frameborder="0"></iframe>
</body>
이렇게 있으면 해당 페이지를 로드시 스크롤이 자동으로 iframe으로 가드라구요
해당문제를 해결할 수 있을까요?ㅠ
!-->답변 1
setTiemout() 을 이용하는 방법과, onload 이벤트에서 특정 엘리먼트에 focus 를 주는 방법 등이 있다고 합니다.
* https://stackoverflow.com/a/30562332
$(window).on('load', function() {
setTimeout(function(){$("body").focus()}, 100);
};
답변을 작성하시기 전에 로그인 해주세요.