我可以使用CSS或jquery覆盖,隐藏,隐藏或更改页脚中的硬编码链接吗?免责声明链接指向母版页中硬编码的过时错误页面,我没有安全访问权限,但我确实拥有向页面本身添加CSS或jscript代码的安全权限。
<span class="FooterPipe">|</span>
<span class="FooterText">
<a class="footerA" href="Javascript:newWin('http://global.xyz.com/inc/disclaimer.aspx')">Disclaimer</a>
</span>
<span class="FooterPipe">|</span>
<span class="FooterText">
<a class="footerA" href="Javascript:newWin('http://global.xyz.com/inc/privacy.aspx')">Privacy</a>
</span>
答案 0 :(得分:4)
您可以使用CSS隐藏它:
a.footerA { display: none; }
或者使用jQuery完全从DOM中删除它:
$('a.footerA').first().remove();
或者只是使用jQuery更改HREF属性:
$('a.footerA').first().attr('href', 'the/new/page.html');