<!DOCTYPE html>
<html>
<title>W3.JS</title>
<script src="/Uploads/Public/article/webdistut/javascript/w3.js"></script>
<body>

<p>Click the button to hide all a elements with a target attribute value equal to "_blank".</p>

<button onclick="w3.hide('a[target=_blank]')">Hide</button>

<h2>This is a heading</h2>

<p>This is a paragraph.</p>
<p><a href="https://www.w3schools.com/html/" target="_blank">This is a link</a></p>
<p><a href="https://www.w3schools.com/css/">This is also link</a></p>

</body>
</html>

Click the button to hide all a elements with a target attribute value equal to "_blank".

This is a heading

This is a paragraph.

This is a link

This is also link