Removing Drupal javascript from Full HTML Link

I am new to Drupal and trying to create a node (let it be called a child) that will be available only when you click on another node (we will call it parent). When closing the child window, I want to update the parent window.

Outside of Drupal, it's easy:

<a onclick="window.close(); window.opener.location.reload();" href="#">Click to close this window</a> 

However, when I inject it into the node body using Full HTML, it still removes the onclick text from my post. How to include javascript in node body like this? There is a special module that I need.

Thanks!

+4
source share
1 answer

You can customize input filters and make your own to provide additional options.

Using a PHP input filter is not a good idea if you really don't want to introduce PHP.
In addition, you may not want to give all administrators who need to make links with JavsScript access to write PHP code on the site.

+2
source

Source: https://habr.com/ru/post/1308435/


All Articles