The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Using javascript to open a specific page at the bottom.

View previous topic View next topic Go down

Solved Using javascript to open a specific page at the bottom.

Post by Daniel Z on July 23rd 2016, 8:57 pm

punbb
http://rpgteste.criarforuns.com.pt/

hello, people.

How to automatically scroll down when the page loads?
I want to see initially the bottom of this page when I'm there:
Code:
/profile?mode=editprofile&page_profil=notifications


Last edited by Daniel Z on July 23rd 2016, 11:27 pm; edited 1 time in total

Daniel Z
New Member

Posts : 23
Reputation : 1
Language : Portuguese

http://rpg-players.forumbrasil.net/

Back to top Go down

Solved Re: Using javascript to open a specific page at the bottom.

Post by Luffy on July 23rd 2016, 11:22 pm

Hello @Daniel Z,

Have you tried a redirection script? I think if you add a redirection link will work normally..
Code:
$(function(){
$('a[href^="/profile?mode=editprofile&page_profil=notifications"]').attr("href","/profile?mode=editprofile&page_profil=notifications#bottom");
});
Add it in all pages and once you visit that page it should take you to the bottom of it instead of it loading normally.






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

Solved Re: Using javascript to open a specific page at the bottom.

Post by Daniel Z on July 23rd 2016, 11:27 pm

Thanks, nakama @Luffy Smile

Daniel Z
New Member

Posts : 23
Reputation : 1
Language : Portuguese

http://rpg-players.forumbrasil.net/

Back to top Go down

Solved Re: Using javascript to open a specific page at the bottom.

Post by Luffy on July 23rd 2016, 11:28 pm

You're welcome! Have a nice day! :rose:

Problem solved & topic archived.
Please read our forum rules: ESF General Rules






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

View previous topic View next topic Back to top


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