<!DOCTYPE HTML Public "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/TR/xhtml1/DTD/ Xhtml1-transitional.dtd "><HTMLxmlns= "http://www.w3.org/1999/xhtml"><Head><Metahttp-equiv= "Content-type"content= "textml; charset=utf-8" /><title>Border color effect when clicking on the input box</title></Head><Body><styletype= "Text/css">. Focusinput{Border:1px solid #99CC33;}</style><Scripttype= "Text/javascript"> functionFocusinput (focusclass) {varElements=document.getElementsByTagName ("input"); for (varI=0; I<elements.length; I++) { if(Elements[i].type!= "Button" &&Elements[i].type!= "Submit" &&Elements[i].type!= "Reset") {Elements[i].onfocus= function() { This. ClassName=Focusclass;}; Elements[i].onblur= function() { This. ClassName= "'; }; }}}window.onload= function() {Focusinput ('Focusinput');}</Script>Please enter your name:<inputtype= "text" /></Body></HTML>
Input box color to fix the