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

How else would you do it, even in JavaScript?


Add modal to DOM as and when needed


Add it to the document when it's needed, and remove it from the document when it's not.




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

Search: