mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
19 lines
488 B
HTML
19 lines
488 B
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<body>
|
||
|
|
||
|
<div contenteditable id="testBox" onfocus="reframe(this);">blahblahblah</div>
|
||
|
<script type="text/javascript">
|
||
|
function reframe(textbox) {
|
||
|
textbox.style.display = "none";
|
||
|
textbox.style.display = "";
|
||
|
textbox.clientWidth;
|
||
|
}
|
||
|
//Adding focus to the textbox should trigger a spellcheck
|
||
|
document.getElementById("testBox").focus();
|
||
|
document.getElementById("testBox").blur();
|
||
|
</script>
|
||
|
|
||
|
</body>
|
||
|
</html>
|