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.

How to apply javascript to specific forumotion pages?

3 posters

Go down

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
avatar
GAT:TEA
Forumember

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

Back to top Go down

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.
ankillien
ankillien
Energetic

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

Back to top Go down

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.
avatar
GAT:TEA
Forumember

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

Back to top Go down

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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51576
Reputation : 3525
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

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