News for hackers. Stuff that matters.
Re:Ask HN: What is the best way to start autoplay? by mtmail on Sunday November 04, 2018 @07:10AM (#18375501)
Both do the same. (2) is more modern syntax as onclick DOM attributes are deprecated.

https://stackoverflow.com/ might be better suited for specific programming language questions.

Re:Ask HN: What is the best way to start autoplay? by maxraz on Sunday November 04, 2018 @12:17PM (#18376862)
Thank you, Sir.