RSS Forums RSS
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting

Javascript Help

Join Date: Mar 2006
Posts: 29
Reputation: jalarie is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 2
jalarie jalarie is offline Offline
Light Poster

Re: Javascript Help

  #2  
Apr 25th, 2006
Originally Posted by cancer10
I want to display the text "SHOUVIK" (without quotes) on the second textbox as soon as I click on the first textbox

Make sure that both textboxes have "name" (for older browsers) and "id" attributes.

Add the following to the first textbox:

onfocus="document.forms[0].second_box_name.value='SHOUVIK';"
Reply With Quote  
All times are GMT -4. The time now is 9:23 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC