Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Controling the cursor on a web page
Message
From
27/12/2000 13:45:15
 
 
To
27/12/2000 13:30:46
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00457039
Message ID:
00457050
Views:
27
>Another novice question about web stuff having found nothing (I probably don't know the magic word for it) in various references online. . .
>
>How does one:
>
>1) Position the cursor at a specific field (for entry) on a web page?

Use a Script tag and focus() method.

>
>2) Control the movement of the cursor from field to field on a web page?
>

How do you mean? I think that the only way to move between fields is by tabbing. You can control the tab order with the "tabindex" attribute.

Simple example to show both of the above.
<html>
     <body>
         Name: <input type="textbox" name="entername" tabindex=1>
          Address: <input type="textbox" name="enteraddr" tabindex=3>
          Phone: <input type="textbox" name="enterphone" tabindex=2>
     <script>
          entername.focus()
     </script>
     </body>
</html>
HTH
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform