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

The point was to be able to do it without JS.


I understand, but from a pragmatic viewpoint, it is no more and no less complicated to do it with `onclick` JS than it would be to do it with some other attribute.

For all practical purposes, there is no difference between the two.

I understand that the `onclick` wouldn't fire in browsers where JS is turned off, but in that case (no JS) you're going to have an awful user experience using dialogs even with builtin open/close attributes for dialogs.




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

Search: