you are in: codestackercodes [RSS] → tag: input [RSS]

search box onclick clear/unclear Delicious Email

this’s used here!

show/hide lines
   1  <script type="text/javascript">
   2      function clickclear(thisfield, defaulttext) {
   3          if (thisfield.value == defaulttext) {
   4              thisfield.value = "";
   5          }
   6      }
   7      
   8      function clickrecall(thisfield, defaulttext) {
   9          if (thisfield.value == "") {
  10              thisfield.value = defaulttext;
  11          }
  12      }
  13  </script>
  14  
  15  <input id="search" type="text" name="q" value="search" onclick="clickclear(this, 'search')" onblur="clickrecall(this,'search')"/>
created by leozera — 01 November 2008 — get a short url — tags: input javascript embed

remove the mac os x glowing blue outline for input fields Delicious Email

show/hide lines
   1  input:focus { outline: none; }
created by leozera — 18 October 2008 — get a short url — tags: css input mac safari embed