Solved

placing cursor in the log in box

Posted on 2001-06-14
1
118 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 50 total points
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to insert an Iframe into WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Open Page or Post…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now