p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4 (http://p2p.wrox.com/forumdisplay.php?f=29)
-   -   @ 1st input field (http://p2p.wrox.com/showthread.php?t=76774)

Tracey October 26th, 2009 05:38 PM

@ 1st input field
At the login.asp page, how can I have the cursor in the User Name field instead of having to tab to or clicking in the text box?
Please advise.
Thanks, Tracey
Beginning Dreamweaver MX 2004
ISBN 0-7645-5524-3 (not 4) 762 pages (not 792 pages)
copyright 2004... 10 9 8 7 6 5 4 3

Imar October 26th, 2009 06:30 PM

Hi Tracey,

You need to use a bit of JavaScript to make this work:


ASP.NET (the successor to the older and out-dated classic ASP you're working with right now) makes this a little easier by allowing you to tell the page which control needs the focus on load. ASP.NET then generates the necessary client side script for you.

It's these little changes (and some bigger ones as well) that eventually make you want to switch to ASP.NET.....



All times are GMT -4. The time now is 08:40 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.