Adding javascript:void(0) In wordpress Post And html Widget?

Im trying to use java script anchor inside wordpress post content and text html widget ,some of those code are

<a href=”#” onClick=”javascript:window.location.href=’http://www.cnn.com'”>News on CNN</a>
<a href=”javascript:void(0)” onClick=”window.location.href=’https://www.'”></a>
<a href=”javascript:window.location=’https://'”></a>

i have been using so many plugin but none of them seems to work..wordpress keep resetting them into tags

anyone can help me?

Read more here:: Adding javascript:void(0) In wordpress Post And html Widget?

Leave a Reply

Your email address will not be published. Required fields are marked *