Drupal removing javascript from Full HTML link
Posted
by Jen
on Stack Overflow
See other posts from Stack Overflow
or by Jen
Published on 2010-04-30T05:35:53Z
Indexed on
2010/04/30
8:07 UTC
Read the original article
Hit count: 178
I am new to Drupal and am trying to create a node (let's call it child) that will only really be accessed when clicked on from another node (we'll call it parent). When closing the child window, I want to parent window to refresh.
Outside of Drupal, that's easy:
<a onclick="window.close(); window.opener.location.reload();" href="#">Click to close this window</a>
However, when I type this into the body of a node using Full HTML, it still strips the onclick text from my post. How can I include javascript in the body of a node like this? Is there a special module I need.
Thanks!
© Stack Overflow or respective owner