2010-10-20 5 views

Répondre

3
window.open("/search.php?key=" + encodeURIComponent(key) + "&type=" + type) 
1
window.open("/search.php?key=" + encodeURIComponent(key) + "&type=" + type); 
1

Vous utilisez la méthode window.open et spécifiez _blank comme cible:

var url = '/search.php?key=' + encodeURIComponent(key) + '&type=' + type; 
window.open(url, '_blank'); 
Questions connexes