Button Javascript in WordPress

Previously I wrote about how to write a simple javascript button for normal webpages. But it looks like it’s utterly different for creating a button in WordPress. Well, basically there’s a way to write it. With that too, you can actually have a lot of other things like a statistics counter to count how many times a user has clicked. Well, depends on how well you know though.

How did I create this button on WordPress? SIMPLE!!

<button onclick="javascript:alert('Hello!\nWelcome to TechieDan.com')">
CLICK ME</button>

Straightforward, so have some fun with Javascript Buttons on WordPress.

One Response

  1. Gajender July 6, 2013

Leave a Reply