Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: