Home
Analytics
remove underline for label when hyperlink is added
bcmp
<p>When label is hyperlinked to internal bookmark to drill through, it creates an underline in the label content. </p>
<p>How to remove the underline from the label element when hyperlink is added</p>
Find more posts tagged with
Comments
Clement Wong
<p>One method is to use a HTML Report Item and change the link styles for all hyperlink tags:</p>
<pre class="_prettyXprint _lang-">
<SCRIPT language='JavaScript'>
var hyperlinks = document.getElementsByTagName('A');
for (var i = 0; i < hyperlinks.length; i++) {
var hyperlink = hyperlinks[i];
var hyperlinkParent = hyperlink.parentNode;
var parentStyle;
if (window.getComputedStyle) {
parentStyle = window.getComputedStyle(hyperlinkParent,null);
} else {
parentStyle = hyperlinkParent.currentStyle;
}
hyperlink.style.color = parentStyle.color;
hyperlink.style.textDecoration = parentStyle.textDecoration;
}
</SCRIPT>
</pre>
<p>It can be customized to target specific links.</p>