lorna
11 years agoMaven
Javascript in a blog
Hi,
We have a blog where the author wants to post a link to a page that opens in a specific window size... it's a product demo so they would like it to appear over / with the blog if that makes sense.
I can't get JavaScript working (window.open) in a blog... is there any way to do this in a blog?
Thanks!
You could introduce a JS file into the main theme that looks for a certain class on links <a> and adds a click event to these links allowing you to fire your custom window open code when they are clicked. Then just add this special class to these links via the post blog HTML editor.