336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.
window.getComputedStyle
Style 속성 값을 가져올 수 없다? getComputedStyle() 메소드를 사용하자
var style = window.getComputedStyle(process, null);
=======
document.getElementById("btn1").onclick = onClick
<script>
window.onload = function () {
if (!window.getComputedStyle) {
window.getComputedStyle = function(element) {
return element.currentStyle;
}
}
}
</script>
'Javascript' 카테고리의 다른 글
(Javascript) 자바스크립트 for문으로 변수 생성 (0) | 2016.08.04 |
---|---|
(Javascript) readyState (0) | 2016.08.04 |
(Javascript) DOM Level 2 방식 이벤트 (0) | 2016.08.04 |
(Javascript) 문자열 추출 (0) | 2016.05.30 |
(Javascript) 자바스크립트 HTML 뒤로가기, 새로고침 등 하는 방법 (0) | 2016.05.30 |