How to pass bloginfo(url) in a jquery

You should be able to use a relative URL.

window.location.replace("/contact-us");

If that code was run on any page on example.com, it would redirect to example.com/contact-us