Using javascript to open a specific page at the bottom.

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.



avatar
Luffy
Manager
Manager

Male Posts : 5368
Reputation : 580
Language : Greek, English
Location : Greece

https://www.crossroadz.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



avatar
Luffy
Manager
Manager

Male Posts : 5368
Reputation : 580
Language : Greek, English
Location : Greece

https://www.crossroadz.net

Back to top Go down

Back to top


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