Using javascript to open a specific page at the bottom. Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
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 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
    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 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!
    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 July 23rd 2016, 11:27 pm

    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 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!