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
Open the Console .
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.
Feedback
Was this page helpful?
Yes
What was the best thing about this page?
It helped me complete my goal(s)
Thank you for the feedback. If you have specific ideas on how to improve this page, please
create an issue .
It had the information I needed
Thank you for the feedback. If you have specific ideas on how to improve this page, please
create an issue .
It had accurate information
Thank you for the feedback. If you have specific ideas on how to improve this page, please
create an issue .
It was easy to read
Thank you for the feedback. If you have specific ideas on how to improve this page, please
create an issue .
Something else
Thank you for the feedback. If you have specific ideas on how to improve this page, please
create an issue .
No
What was the worst thing about this page?
It didn't help me complete my goal(s)
Thank you for the feedback. If you have specific ideas on how to improve this page, please
create an issue .
It was missing information I needed
Thank you for the feedback. If you have specific ideas on how to improve this page, please
create an issue .
It had inaccurate information
Thank you for the feedback. If you have specific ideas on how to improve this page, please
create an issue .
It was hard to read
Thank you for the feedback. If you have specific ideas on how to improve this page, please
create an issue .
Something else
Thank you for the feedback. If you have specific ideas on how to improve this page, please
create an issue .