Forum Discussion

lorna's avatar
lorna
Maven
11 years ago

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 s...
  • cblown's avatar
    cblown
    11 years ago

    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.