Page 1 of 1

Re: Browser issue in Styling the form field and some questions

Posted: Thu Mar 11, 2010 5:16 pm
by kaszu
1. javascript, but it can be accomplished with CSS3
2. input { outline: none; }
4. http://www.my-debugbar.com/wiki/IETester/HomePage

Re: Browser issue in Styling the form field and some questions

Posted: Fri Mar 12, 2010 1:18 am
by s.dot
prionkor wrote:Thank you kaszu. But can you describe answer 1 more or some link?
It is very simple.

Code: Select all

<script type="text/javascript">
function clearSearch()
{
    document.getElementById('searchForm').value = '';
}</script>
 
<input id="searchForm" type="text" value="Search.." onfocus="clearSearch();">