The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How to bring focus to Login textbox

4 posters

Go down

Solved How to bring focus to Login textbox

Post by Ace 1 September 8th 2015, 7:33 pm

When a user connects to my forum, how can I make focus go to the login text field?

thanks.


Last edited by Ace 1 on September 8th 2015, 11:11 pm; edited 1 time in total
Ace 1
Ace 1
Helper
Helper

Male Posts : 843
Reputation : 64
Language : English - French?
Location : Druid Hill Park

https://help.forumotion.com

Back to top Go down

Solved Re: How to bring focus to Login textbox

Post by SLGray September 8th 2015, 7:38 pm

Could you please explain further what you want?


How to bring focus to Login textbox Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51583
Reputation : 3526
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: How to bring focus to Login textbox

Post by Ace 1 September 8th 2015, 9:41 pm

How to bring focus to Login textbox Y5cDh
Ace 1
Ace 1
Helper
Helper

Male Posts : 843
Reputation : 64
Language : English - French?
Location : Druid Hill Park

https://help.forumotion.com

Back to top Go down

Solved Re: How to bring focus to Login textbox

Post by Klemen September 8th 2015, 10:07 pm

What do you mean by 'focus go to /.../'?
Klemen
Klemen
Forumember

Male Posts : 292
Reputation : 32
Language : English, German, Slovene

http://www.bannedbrotherhood.com

Back to top Go down

Solved Re: How to bring focus to Login textbox

Post by Ace 1 September 8th 2015, 10:18 pm

For example.

Click this link.

You see how it automatically focuses to the login field?
Ace 1
Ace 1
Helper
Helper

Male Posts : 843
Reputation : 64
Language : English - French?
Location : Druid Hill Park

https://help.forumotion.com

Back to top Go down

Solved Re: How to bring focus to Login textbox

Post by Ange Tuteur September 8th 2015, 11:03 pm

Hi @Ace1,

Add the following into a script.
Modules > JS codes management > Create a new script

Placement : In all the pages
Code:
$(function() {
  var pseudo = $('input[name="username"]')[0];
  pseudo && pseudo.focus();
});
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: How to bring focus to Login textbox

Post by Ace 1 September 8th 2015, 11:11 pm

Thanks. -Solved
Ace 1
Ace 1
Helper
Helper

Male Posts : 843
Reputation : 64
Language : English - French?
Location : Druid Hill Park

https://help.forumotion.com

Back to top Go down

Solved Re: How to bring focus to Login textbox

Post by Ange Tuteur September 8th 2015, 11:12 pm

No problem Wink

Topic archived

Have a good day.
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum