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.

Using javascript to open a specific page at the bottom.

2 posters

Go down

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

Post by Daniel Z 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
avatar
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 TheCrow 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.


Using javascript to open a specific page at the bottom. Thecro10
Forum of the Forums

Forumotion Rules | Tips & Tricks |
FAQ | Did you forget your password?



*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6922
Reputation : 795
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

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

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

Thanks, nakama @Luffy Smile
avatar
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 TheCrow 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


Using javascript to open a specific page at the bottom. Thecro10
Forum of the Forums

Forumotion Rules | Tips & Tricks |
FAQ | Did you forget your password?



*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6922
Reputation : 795
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Back to top

- Similar topics

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