Watch JavaScript values in real-time with Live Expressions
Published on
If you find yourself typing the same JavaScript expression in the Console repeatedly, you might find it easier to create a Live Expression. With Live Expressions you type an expression once and then pin it to the top of your Console. The value of the expression updates in near real-time.
Create a Live Expression #
Click Create Live Expression
. The Live Expression text box appears.
Figure 1 Typing
document.activeElement
into the Live Expression text box.Type Control+Enter or Command+Enter (Mac) to save the expression, or click outside of the Live Expression text box.
Last updated: • Improve article