| |||||||
| Internet Explorer Discuss IE7 or any other IE version. |
![]() |
| | LinkBack | Thread Tools |
| |||
| Problème IE7/window.open j'ai un menu déroulant dans lequel réside plusieur sites, je voudrai sélectionner un site dans la liste et qu'il soit ouvert dans une autre fenetre. j'ai donc une petite fonction qui ouvre ce site dans une autre fenetre en récupérant l'adresse d'après la liste. Lors du lancement de la fonction sous IE7, ma fenetre est bloqué, considéré comme pop-up, par contre si au lieu de onchange, je met un lien dur en onclick, la ce n'est pas considéré comme pop-up et la fenetre s'ouvre, pourtant c'est la même fonction, alors pourquoi cette différence? je voudrai que ma fenetre s'ouvre a partir de la liste déroulante sans qu'elle soit considérée comme pop-up. voici des bout de code : <SCRIPT language=JavaScript type=text/JavaScript> <!-- var newWin = null; function closeWin(){ if (newWin != null){ if(!newWin.closed) newWin.close(); } } function new(strURL,strType,strHeight,strWidth) { closeWin(); var strOptions=""; if (strType=="console") strOptions="resizable,height="+strHeight +",width="+strWidth; if (strType=="fixed") strOptions="status,height="+strHeight +",width="+strWidth; if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,resizable,l ocation,height="+strHeight +",width="+strWidth; newWin = window.open(strURL, 'newWin', strOptions); newWin.focus(); } //--> </SCRIPT> ------------------------------------------------------------------------------ <FORM > <SELECT onchange="new(this.form.keyword.options[this.form.keyword.selectedIndex].value,'fixed', 400,400);return false;"> <OPTION value='adresse site1'>site1</OPTION> <OPTION value='adresse site2'>site2</OPTION> .... </SELECT> </FORM> ------------------------------------------------------------------------------ Quelqu'un peu m'aider? |
![]() |
| Bookmarks |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problème IE7/window.open | anthony.de.oliveira@free.fr | Windows XP | 1 | 04-18-2007 05:45 PM |
| problème synchronisation porte document | amanunta@free.fr | Windows XP | 0 | 03-03-2007 05:30 AM |
| How can I keep a window open? | cawsgt | Windows XP | 1 | 02-20-2007 05:00 PM |
| vertical screen probleme | Razyelle | Windows XP | 2 | 01-30-2007 02:00 PM |
| How get Window Desktop Search window to open full size? | Andy | Windows XP | 3 | 01-04-2007 02:10 AM |