Run ❯
Get your
own
website
❯
Run Code
Ctrl+Alt+R
Save Code
Ctrl+Alt+A
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Go to Spaces
Ctrl+Alt+P
<!DOCTYPE html> <html> <body> <h1>Change tab-size with JavaScript</h1> <pre id="t1"> I have tabs inside! </pre> <p>Click the "Try it" button to change the tab-size property of the PRE element</p> <button onclick="myFunction()">Try it</button> <script> function myFunction() { document.getElementById("t1").style.MozTabSize = "16"; // Firefox document.getElementById("t1").style.tabSize = "16"; } </script> <p><strong>Note:</strong> Firefox supports an alternative, the MozTabSize property.</p> </body> </html>