Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

placing cursor in the log in box

Posted on 2001-06-14
1
Medium Priority
?
128 Views
Last Modified: 2013-12-24
Is there a function in ColdFusion to have the cursor already in the log in box when the user enter the application? Currently, they either have to tab until the cursor is there or use the mouse to place the cursor in the log in box.
0
Comment
Question by:NikiD
1 Comment
 
LVL 4

Accepted Solution

by:
CF_Spike earned 200 total points
ID: 6192331
There isn't a ColdFusion function, but there is a simple little piece of Javascript to do it instead. put this below the form on the page.

Replace the <formname> and <formfieldnames> with the values from your page. They are case sensitive

<SCRIPT>
<!--
document.<formname>.<formfieldname>.focus();
//-->
</SCRIPT>

Spike
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp…
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question