Dec 2 2009

JavaScript remove search text…

Ben Hoskins

I have found this script comes in very handy from time to time and i cant seem to find it on the Internet. So here it is.

Code:

<input type="text" value="search" onclick="if (this.value == 'search') { this.value = '' }">

Output:

This will allow you to have an example in each text box to help the user better understand your form. Instead of the user having to manually delete all the text inside, it will simply remove itself at a click of a button AND it will only remove the text you ask it to so it wont end up deleting all of the text your user input into the textbox.

How it works…


if (this.value == 'search')

{

this.value = ''

}

Dec 1 2009

hmGoogle…

Ben Hoskins

Our Google HozzaMedia edition has been woring away for a few months now and has become rather popular, about 600 hits per day. :)

hmGoogle’s tried and trusted method “fine tunes” google search and allows you to search for music, programs and albums easily and quickly.

Snapshot of hmGoogle

Snapshot of hmGoogle

Enlarge