Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > textbox onload

Reply
Thread Tools

textbox onload

 
 
murali.trichy
Guest
Posts: n/a
 
      02-20-2006
hi,
I want to capture Textbox's onLoad / onInit / onactivate event. but i'm

not able to do this. Any only knows Pls help.
thanks
-murali

 
Reply With Quote
 
 
 
 
VK
Guest
Posts: n/a
 
      02-20-2006

murali.trichy wrote:
> hi,
> I want to capture Textbox's onLoad / onInit / onactivate event. but i'm
> not able to do this. Any only knows Pls help.


Textbox is not a dynamic data structure (unless databound in IE's data
binding). It is rendered and displays its default value while page is
loading together with other page elements, and it is available for
scripting on page load.

<body
onload="alert(document.forms['myForm'].elements['myTextBox'].value)">

 
Reply With Quote
 
 
 
 
Thomas 'PointedEars' Lahn
Guest
Posts: n/a
 
      02-20-2006
murali.trichy wrote:

> I want to capture Textbox's onLoad / onInit / onactivate event. [...]


Besides there is no such object or event: Why?


PointedEars
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
onload -->* no onload marco Javascript 7 06-24-2006 08:39 PM
Why doesn't frameset onload event get called when each of the frames has an onload? adnanx82@gmail.com Javascript 5 05-15-2005 01:58 PM
base.OnLoad called, OnLoad not executed Fabio R. ASP .Net 0 03-25-2005 01:21 PM
window.onload and body.onload differences David Otton Javascript 2 11-04-2004 04:34 PM
How to put cursor in textbox onload Asad ASP .Net 1 04-27-2004 11:29 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57