so I have this code here and I have it set up so when I click the button, it changes the footer. The issue is that when I click the link, it includes the current website url before the url I typed. How can I stop this so that when the link is clicked it only goes to the url I had typed? Example: I type www.profile.com as the url in JS but when I run the file and click on it in-browser it would take me to www.currentWebsite.com/currentFile/www.profile.com
Thanks!
HTML
<button onclick="changeFooter()">change footer</button>
<footer class="footer footer-black footer-big">
<div class="container">
<div class="theme-bottom-footer-content">
<div class="theme-bottom-footer-content">
<ul id="menu-social-links-menu" class="footer-menu pull-left"><li id="menu-item-46" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-46"><a href="https://www.yelp.com">Yelp</a></li>
</ul>
<div class="copyright pull-right">
<a href="https://themeisle.com/themes/hestia/" target="_blank" rel="nofollow">Theme</a> | Powered by <a href="http://wordpress.org" rel="nofollow">WordPress</a> </div>
</div>
</div>
</div>
</footer>
JavaScript:
function changeFooter(){
$(".copyright.pull-right").html("Website | Created by by <a href='www.portfolio.com' target='_Blank'>My Name</a>");
// alert("inside change footer");
//document.getElementsByClassName('copyright pull-right').innerHTML = "hi";
}