Y
Hacker News
new
|
ask
|
show
|
jobs
by
therein
1587 days ago
You can also right click a DOM element in the inspector and click `store as a global variable`. It will automatically do the following for you
temp1 = document.querySelector(SELECTOR_FOR_NODE_YOU_PICKED)