Avatar
Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Feed Topic RSSsp_TopicIcon
Improve the Usability of your Squeeze Page
March 14, 2012
5:34 am
Avatar
Hollywood, CA
Member
Members
Forum Posts: 19
Member Since:
January 28, 2012
sp_UserOfflineSmall Offline

I've been using this bit of code for a while now to optimize all of my squeeze pages. What it does is force the "focus" of the user's browser to the first field of your form, usually "Name" or "Email", after the page is done loading.

 

To see it in action, check out: http://PaulLoeb.net and notice the blinking cursor.

 

To get this functionality on your own site, you need to follow these steps:

  1. 1 - View the source of your web form and note the "id" of the text box element you want to "focus" on. On my website, it's "awf_field-32380963".
     
  2. 2 - Put this code right above your </body> tag (removing the blank spaces in the script tags, and replacing FIELDNAME with the id you found in step 1):
     

    < script type = " text/javascript " > window.onload = function (){ document.getElementById("FIELDNAME").focus(); } </ script >   
  3. 3 - Voila! Upload your newly edited file, refresh your browser, and you should automatically be focused on the desired field!

Please let me know if you find this script useful!

Download my new song for free! Click here: http://paulloeb.net

March 14, 2012
5:51 pm
Avatar
Los Angeles
Member
Members
Forum Posts: 266
Member Since:
June 10, 2011
sp_UserOfflineSmall Offline

Awesome! Thank you Paul! I'll give it a try...

julianna raye

March 17, 2012
4:51 pm
Avatar
Philadelphia, PA
Admin
Forum Posts: 631
Member Since:
June 9, 2011
sp_UserOfflineSmall Offline

That's a nifty idea, Paul.  I like that.

Have you noticed an increase in conversions since you've started using it?  Would make for a great case study.

-Steve

May 2, 2012
11:30 pm
Avatar
Dublin, Ireland
Member
Members
Forum Posts: 22
Member Since:
March 12, 2012
sp_UserOfflineSmall Offline

Putting my squeeze page together and added this. Makes a lot of sense thanks! 

I'm with Mailchimp and the FIELDNAME to be replaced in my case is "mce-EMAIL".

 

Enda

May 5, 2012
3:31 am
Avatar
Los Angeles
Admin
Forum Posts: 4331
Member Since:
June 7, 2011
sp_UserOfflineSmall Offline

Hey Paul, somehow I missed this post until just now. That's a really cool tip. I've never come across it and it definitely drew my eyes right to it. Good stuff.

Having trouble with your marketing? Wish you could have an experienced direct-to-fan marketing expert look over your actual campaigns, music, or content and offer feedback? Or perhaps you’re just looking for a little one-on-one assistance so you can ask questions that pertain to your specific goals and get a second, more experienced, perspective? Click here to book a session with me now.

Forum Timezone: Pacific/Auckland
Most Users Ever Online: 221
Currently Online:
Guest(s) 15
Currently Browsing this Page:
1 Guest(s)
Member Stats:
Guest Posters: 7
Members: 2846
Moderators: 0
Admins: 3
Forum Stats:
Groups: 2
Forums: 9
Topics: 1466
Posts: 11464