if the current uURL is not same as specified then apply jQuery. BUT THIS WONT WORK
<script type="text/javascript">
var myurl = http://example.com/document.html;
var currenturl = window.location
if(myurl == currenturl) {
$("<span>url's match</span>").replaceAll("body"); // check replaceWith() examples
}
</script>
Also current URL can be a standard link http://example.com/ or as shown in example.
You need to quote your URL:
For best practice, don’t omit the
;here: