I have used static http:// url into my html(s) page, now i want to replace with empty string.
Suppose here is HTML Content:
<div id="MSO_ContentTable">
<script type='text/javascript'>
function RedirectURL(RedUrl,curTab)
{
window.location.href='http://www.contoso.com/Sales/SitePages/'+RedUrl;
}
function nav2Lib(RedUrl)
{
NavigateHttpFolder('http://www.contoso.com/Sales/RFP%20Bank/'+h3url, '_blank');
}
function nav2Proposal(RedUrl)
{
NavigateHttpFolder('http://www.contoso.com/Sales/Proposals/'+h3url, '_blank');
}
</script>
........ lots of html contents
</div>
Edit :
$('#MSO_ContentTable').html().replace(/http://www.contoso.com/g,'');
I want to replace whole url "http://www.contoso.com/" to empty string.