Welcome to TalkGraphics.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2018
    Location
    Australia
    Posts
    1,740

    Default Form Field Stealing Focus

    A page with a form widget placed about 1/3 down. When the page loads the focus is on the first field of the form causing the page to skip upwards. On the mobile variant, the form (same code) is further down the page and doesn't grab the focus.

    I've stared at it, talked nicely to it and rocked back and forth in a dark corner. I'm now all out of ideas. It's always the little things that bug me the most.

    I've attached the .web and the hosted (prettier) page is https://spizzico.com.au/catering.htm
    Attached Files Attached Files

  2. #2
    Join Date
    Aug 2010
    Posts
    533

    Default Re: Form Field Stealing Focus

    Hi Chris,
    Remove the Autofocus from the Name input of the form.

  3. #3
    Join Date
    Dec 2018
    Location
    Australia
    Posts
    1,740

    Default Re: Form Field Stealing Focus

    That's it, thank you jamesd.

    I have looked at that code so many times, but when you don't know what you're looking for it's just a jumble of words. Having said that, I'm kicking myself for not searching for 'focus'.

 

 

Tags for this Thread

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
  •