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
3 posters

    How to apply javascript to specific forumotion pages?

    avatar
    GAT:TEA
    Forumember


    Female Posts : 71
    Reputation : 13
    Language : English
    Location : Chicago

    Solved How to apply javascript to specific forumotion pages?

    Post by GAT:TEA Wed 7 Mar 2012 - 4:29

    Hello, I came across a topic on another support forum regarding selectors for forumotion pages. I was wondering how can we apply javascript to these pages? It's simple for pages like the homepage as you just tick the checkbox, but for something that requires if(document.url) or if(document.getElementbyId) is there no option?


    Last edited by GAT:TEA on Wed 7 Mar 2012 - 6:21; edited 1 time in total
    ankillien
    ankillien
    Energetic


    Posts : 5198
    Reputation : 129
    Language : English, XHTML, CSS, JS, PHP, SQL

    Solved Re: How to apply javascript to specific forumotion pages?

    Post by ankillien Wed 7 Mar 2012 - 4:32

    Hi,

    You can do it by adding javascript to all pages. The script should be able to check current page URL and decide whether to run on that page or not.
    avatar
    GAT:TEA
    Forumember


    Female Posts : 71
    Reputation : 13
    Language : English
    Location : Chicago

    Solved Re: How to apply javascript to specific forumotion pages?

    Post by GAT:TEA Wed 7 Mar 2012 - 6:12

    Alright, thank you very much,ankillien , you've been very helpful. This is solved.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: How to apply javascript to specific forumotion pages?

    Post by SLGray Wed 7 Mar 2012 - 6:32

    Topic Solved & Locked





    How to apply javascript to specific forumotion pages? Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.

      Current date/time is Mon 11 Nov 2024 - 15:25