Creating a button and an in-page action.
The code for this is quite straight forward. First we put in a piece of HTML script into the head element, giving it an 'id', then we call it from here.
The code I put in the header is as follows;
As you can see, it is using a function called 'displayResult()'. This is an actually JavaScript using DOM Objects. Because it is a script from another language, it is enclosed in the
Now we have created an ID called 'neat' and can use this in ordinary HTML tags.
Change this text
Then we will create a button
Like this.
Change this text
This is quite a neat little thing to do and with a bit of playing you could do all kinds of things.
Page under construction.
More content and detail is being added to this site all the time. Check back regularly to see what's new.
Some pictures while you wait






to submit your code contributions
Enjoy this trip through my site and please feel free to comment on any part. I may not take any notice, but then, it is my site.
- All pictures displayed on this site were taken by or are fully owned by me.
- This site has been upgraded to use HTML5 and should be backward compatible with older browsers. If you think any pages are not displaying correctly contact the site author here.
- This site uses Java script to maintain compatibility. To view this site correctly, you should allow scripts and ActiveX controls to run.
- If you don't feel easy or competent changing the security settings and you are willing to trust that my site is not going to harm your computer, then add my site to your trusted sites zone. To stop the Script and ActiveX controls prompt from appearing everytime you access this page, you should also tick the option to 'Allow active content to run in files on My Computer' in the security section of the security tab of the Internet Options dialog box. This can be accessed from the tools menu or the cog to the right of the address bar.
- Although I have upgraded this site to support the new HTML5, I am still a learner myself. If you have any tips you would like to share with me and the visitors to this site, I will gladly add your contributions to the contributions pages.
- This site is ranked on URLmetrics