JavaScript
div innerHtml 내용 안에 들어갈 html 의 onload 실행법
천상의날개
2012. 1. 31. 12:29
innerHtml 의 내용에 들어갈 html문서는 onload 같은 script를 실행 할수없다. 그래서 방법이 있다면
<img src="./img/image.png" alt="refresh-helper" style="width: 0px; height: 0px; visibility: hidden;" onload="alert('eee');" />
처럼 img 테그를 넣어서 이미지가 onload되었을때 해당 script를 실행하는 방법 이 있다.