Compiler
JS DOM
DOM Navigation
Run
<!DOCTYPE html> <html> <body> <h1>JavaScript Next & Previous ElementSibling Properties</h1> <ul> <li id="lang1">HTML</li> <li id="lang2">CSS</li> <li id="lang3">JavaScript</li> <li id="lang4">jQuery</li> </ul> <script> let nEleSibling = document.getElementById("lang1").nextElementSibling.innerHTML; document.write("nextElementSibling: ", nEleSibling + "<br>") let pEleSibling = document.getElementById("lang4").previousElementSibling.innerHTML; document.write("previousElementSibling: ", pEleSibling) </script> </body> </html>
Editor Commands
Commands
Shortcut Key (Win)
Shortcut Key (Mac)
selectAll
Ctrl-A
Cmd-A
singleSelection
Esc
-
killLine
-
Ctrl-K (Mac)
deleteLine
Ctrl-D
Cmd-D
undo
Ctrl-Z
Cmd-Z
redo
Ctrl-Y
Shift-Cmd-Z, Cmd-Y
undoSelection
Ctrl-U
Cmd-U
redoSelection
Alt-U
Shift-Cmd-U
goDocStart
Ctrl-Home
Cmd-Up, Cmd-Home
goDocEnd
Ctrl-End
Cmd-End, Cmd-Down
goLineStart
Alt-Left
Ctrl-A
goLineEnd
Alt-Right
Ctrl-E
goLineRight
-
Cmd-Right
goLineLeft
-
Cmd-Left
goLineUp
Up
Ctrl-P
goLineDown
Down
Ctrl-N
goPageUp
PageUp
Shift-Ctrl-V
goPageDown
PageDown
Ctrl-V
newlineAndIndent
Enter
-
save
Ctrl-S
Cmd-S