Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript JavaScript Re: JavaScript

#62624
soap
Participant

<INPUT TYPE = Button VALUE = "Click Me" OnClick = "document.write(‘Hello World’)>

needs to be

<input type="button" value="Click Me" onclick="document.write(‘Hello World’)" />

you’re missing quotes on "button" and after document.write