mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 20:47:44 +00:00
21 lines
504 B
HTML
21 lines
504 B
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<body>
|
|
<script>
|
|
var im = navigator.mozInputMethod;
|
|
if (im) {
|
|
im.oninputcontextchange = function() {
|
|
var ctx = im.inputcontext;
|
|
// Report back to parent frame on status of ctx gotten.
|
|
window.postMessage(window.location.hash + !!ctx, '*');
|
|
// If there is a context, send out the hash.
|
|
if (ctx) {
|
|
ctx.replaceSurroundingText(location.hash);
|
|
}
|
|
};
|
|
}
|
|
</script>
|
|
<p>This frame represents the input method frame.</p>
|
|
</body>
|
|
</html>
|