input box set focus 
Author Message
 input box set focus

Hi I'm trying to make the cursur blink in my input box
when the page loads.  Is there a way to do this without
using javascript?  I'm useing VBScript for my asp page.  I
am NOT USING dotNET.

Thanks,
Jon



Tue, 28 Dec 2004 23:55:44 GMT  
 input box set focus
Hi Jon,

You wanna do it without using javascript?
Is is ok using vbscript?
Here is a sample using vbscript.

<HTML>
        <HEAD>
                <TITLE> Test HTML Page </TITLE>
        </HEAD>
        <BODY>
                <H1>Some HTML Body</H1>
                <INPUT TYPE=text ID="t1" VALUE="" NAME="t1" SIZE=15>
                <INPUT TYPE=text ID="t2" VALUE="" NAME="t2" SIZE=15>
                <INPUT TYPE=button ID="b1" VALUE="button" NAME="b1" SIZE=15>
                <SCRIPT LANGUAGE=VBScript>
                t2.focus
                </SCRIPT>
        </BODY>
</HTML>

--
Parker Zhang
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.



Sun, 02 Jan 2005 11:31:19 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Can't set input focus to textbox

2. Setting input focus - How to???

3. how do i make inputbox set focus to the input

4. Unable to set focus on a combo box?

5. Set Focus in text boxes in frames

6. how to set focus on 2 picture boxes

7. Setting focus to bottom of text box

8. Setting Focus to Newest Item in List Box

9. Can't set rich text box focus

10. set focus on tetxt box

11. EASY - Setting focus on a text box

12. Set focus in text box?

 

 
Powered by phpBB® Forum Software