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 Tue 8 Sep - 13:33

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 Tue 8 Sep - 17:11; 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 Tue 8 Sep - 13:38

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 : 51172
Reputation : 3507
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 Tue 8 Sep - 15:41

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 Tue 8 Sep - 16:07

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 Tue 8 Sep - 16:18

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 Tue 8 Sep - 17:03

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 : 13244
Reputation : 2998
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 Tue 8 Sep - 17:11

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 Tue 8 Sep - 17:12

No problem Wink

Topic archived

Have a good day.
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13244
Reputation : 2998
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