The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern


  • # August 23, 2009 at 11:10 pm

    I am new to JavaScript. The code I’m using is…

    <TITLE>Script in Html Tags</TITLE>

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

    I get the button but ‘hello world’ doesn’t appear when I click it.

    # August 23, 2009 at 11:23 pm

    <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

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed