We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

javascript:// link in footer links? | Forum

JB TECH
JB TECH Mar 30 '13
Hello everyone.


I'm trying to make a Press Kit for my website, and I don't want it to redirect to a new page, I want it to when you click the link "Press Kit" in the footer of my site, it opens a custom made popup I have. I know how to put the links in the footer without using the page adding tool in the admin, and how to make this in plugin format, but how would I go about to turn a link I create a route too in the footer a javascript one?


Thanks!


-Jake

Michael I.
Michael I. Apr 3 '13
You should use this function to add JS via the code:

OW::getDocument()->addScript($jsCode);