How to apply javascript to specific forumotion pages? 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.
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 March 7th 2012, 4:29 am

    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 March 7th 2012, 6:21 am; 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 March 7th 2012, 4:32 am

    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 March 7th 2012, 6:12 am

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


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

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

    Post by SLGray March 7th 2012, 6:32 am

    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.