SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Evangelist
    Join Date
    Feb 2007
    Posts
    402
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Form focus undesired

    Hi ..

    Am a bit puzzled here and wondered if anyone could assist..

    for some reason, when i load this page..

    http://www.musicexplained.co.uk/a/home_1.cfm?a=tony


    the mouse cursor focuses on the form on the bottom of the page, when I have not written any javascript specifically to achieve this...



    would anyone have any ideas as to why this is happening?

    thanks
    discover song meanings and more http://www.music-explained.com

  2. #2
    SitePoint Wizard gRoberts's Avatar
    Join Date
    Oct 2004
    Location
    Birtley, UK
    Posts
    2,439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    On line 417 you have:

    Code:
    document.getElementById('rec_rcd').focus();


  3. #3
    SitePoint Evangelist
    Join Date
    Feb 2007
    Posts
    402
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    oh yeah..cheers for that spot..
    it turns out that coldfusion automatically adds that javascript in to the page if you add certain attributes to a form field....nice one
    discover song meanings and more http://www.music-explained.com


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •