mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
19 lines
482 B
HTML
19 lines
482 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<body>
|
|
|
|
<textarea id="testBox" onfocus="reframe(this);">blahblahblah</textarea>
|
|
<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>
|