<html> | |
<!-- This page is meant to load inside Chrome Frame --> | |
<script> | |
// Upon receiving focus, pass the focus to the hello world button. | |
window.onfocus = function() { | |
document.getElementById("buttonToFocus").focus(); | |
}; | |
</script> | |
<body> | |
<button id="buttonToFocus" | |
onfocus="externalHost.postMessage('btnOnFocus');"> | |
hello world</button> | |
<div id="statusPanel" style="border: 1px solid green; width: 100%"> | |
Inside Chrome Frame.... | |
</div> | |
</body> | |
</html> |