window.postMessage
2084 단어 message
//http://www.onlineaspect.com/2010/01/15/backwards-compatible-postmessage/
//http://blog.joycode.com/saucer/archive/2006/10/03/84572.aspx
//https://developer.mozilla.org/en/DOM/window.postMessage
<!doctype html>
<html>
<head>
<title>postMessage by </title>
<meta charset="utf-8"/>
<meta content="IE=8" http-equiv="X-UA-Compatible"/>
<meta name="keywords" content="postMessage by " />
<meta name="description" content="postMessage by " />
<style>
</style>
<script type="text/javascript" charset="utf-8">
window.onload = function(){
if(window.attachEvent){//
window.attachEvent('onmessage', function(e) {
alert(window.event.data+"IE")
alert(e.data+"IE2") ;
})
}else{
window.addEventListener('message',function(e) {
alert(e.data+" ");
},false);
}
window.postMessage(" ", document.URL);
}
</script>
</head>
<body>
</body>
</html>
window.onload = function(){
if(window.attachEvent){//바 인 딩 후 감청
window.attachEvent('onmessage', function(e) {
alert(window.event.data+"IE")
alert(e.data+"IE2") ;
})
}else{
window.addEventListener('message',function(e) {
alert(e.data+"표준 브 라 우 저");
},false);
}
window.postMessage("사도 정미",document.URL);
}
실행 코드
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
org.apache.jasper.JasperException: java.util.MissingResourceException 솔루션Stripes 학습 중 오류가 발생했습니다. org.apache.jasper.JasperException: java.util.MissingResourceException: Could not find an error ...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.