Simple Javascript Hello World

11 / 100

Here’s a simple script that every new javascript scripters should know. Well, play with buttons and poof…. javascript. Well, although writing it in WordPress is a whole lot different from normal javascripting.

Impressive? Well, in normal html codes it would be

<input type='button' value='Hello World' 
onClick='javascript:alert('Hello!\nWelcome to')'>

Cool right 🙂

No Responses

Leave a Reply