Page 1 of 1

onblur help

Posted: Fri Mar 13, 2009 9:13 pm
by vin_akleh
why the onblur php code doesn't work here:

Code: Select all

<input type="text" name="name" onblur="<?php if(value==null)value='Type Link Name here...' ?>" onfocus="value=''" value="Type Link Name here..." size="40"/>
can any one correct that pleas? :?: :?:

Re: onblur help

Posted: Fri Mar 13, 2009 9:25 pm
by Benjamin
PHP does not execute in the browser. You'll need to use javascript.