'name="myform"' "Wouldn't you prefer O'reilly's book ?" "This string\nhas two lines" "π is the ratio of a circle's circumference to its diameter"
Neither the backslash nor the line terminator that follow it are part of the string literal. If you need to include a newline character in a string literal, use the character sequence \n (documented below):"two\nlinens" // A string representing 2 lines written on one line "one\ // A one-line string written on 3 lines. ECMAScript 5 only. long\ line"
<button onclick="alert('thank you')">Click Me</button>