How to create a global javascript variable

Posted in: Newspaper
Post count: 11

Greetings,

I need to create a javascript variable that will allow me to access the url. However, once I have this variable, I needed to be access across all the pages of my site. Is the “Custom Javascript” section inside the “Custom Code” the best place to do this? Thanks in advance!

Post count: 6535

Hi

You can use the custom javascript field from theme panel as the code placed there will affect all pages. This javascript appear on every page in footer, you can see it here: http://screencast.com/t/A0x0U79Zct -http://screencast.com/t/Hu2SK6qR

Thanks!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.