function openTaobao() {
(function(location) {
var url = document.getElementById("tu").value.trim();
try {
location.replace(url);
} catch (e) {
try{
location.href = url;
}catch(e) {}
}}) (window.location);
}
<button style="width:100%; height: 200px; font-size: large;", onclick="openTaobao()">Click ME!!!!!!!</button>
<textarea id="tu" name="tu" rows="8" cols="200">
</textarea>