On page 43, you strongly recommend eliminating embedded Javascript within the HTML page. I am guilty of adding JavaScript to my web pages by embedding. Mainly because I didn't know any better. So following your good example, I am rewriting my JavaScript content.
But I don't know how to eliminate one of the examples you show: <a href="javascript:createWindow():">A Link</a>
I'd like the 'A Link' to show a popup window for those with javascript and a new window for those without javascript.
Any tips are welcome.
Thank you for writing Modern Javascript. It has so many good tips for improved JavaScript scripting. And the book starts basic enough to gently educate. Especially a self-taught webmaster like me. I'll try to improve!