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.
The forum of the forums
2 posters

    Using javascript to open a specific page at the bottom.

    avatar
    Daniel Z
    New Member


    Posts : 23
    Reputation : 1
    Language : Portuguese

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

    Post by Daniel Z 23.07.16 19:57

    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 23.07.16 22:27; edited 1 time in total
    TheCrow
    TheCrow
    Manager
    Manager


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

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

    Post by TheCrow 23.07.16 22:22

    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!
    avatar
    Daniel Z
    New Member


    Posts : 23
    Reputation : 1
    Language : Portuguese

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

    Post by Daniel Z 23.07.16 22:27

    Thanks, nakama @Luffy Smile
    TheCrow
    TheCrow
    Manager
    Manager


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

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

    Post by TheCrow 23.07.16 22:28

    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!

      Current date/time is 13.11.24 15:25