[javascript] How to simulate target="_blank" in JavaScript