I have some simple lines of code:
that.click(function(){
window.open($('.linkBox input').val());
});
Assuming I'm redirecting to google.com, whenever a new window is opened, the URL is: "my/project/url/http://www.google.com"
Basically whatever URL is inputted, it gets appended to the end of my project's URL. How can I avoid this?
I think the problem could be the missing
http://
in the URL, try this codeWorking Demo: http://jsfiddle.net/muthkum/BPBev/1/