textbox onload

M

murali.trichy

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
 
V

VK

murali.trichy said:
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)">
 
T

Thomas 'PointedEars' Lahn

murali.trichy said:
I want to capture Textbox's onLoad / onInit / onactivate event. [...]

Besides there is no such object or event: Why?


PointedEars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top