bonjour,

la fonction dispens�e dans la faq me convient presque, voici ce que j'essayes de faire :
Code : S�lectionner tout - Visualiser dans une fen�tre � part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<html>
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>No tool bar</title>  
<script type='text/Javascript'>
function notoolbar(){
  var str = window.location
    if(window.name!='nouveau' && str.match("Nouveau2.html")=='Nouveau2.html')
    {  
        window.open(window.top.location.href,'nouveau','width='+(parseInt(screen.width)-10)+',height='+screen.height+',top=0,left=0,toolbar=no') ;
        window.opener=self;
        self.close() ;
    }
} 
</script> 
</head>
<body onload="notoolbar()">hello !!! </body> 
</html>
bref, n'executer la fonction que si l'url contient Nouveau2.html (bien sur 'Nouveau2.html' est un choix pour les tests, je voudrais simplement r�ussir un match sur l'url)
mais �a ne fonctionne pas ...

je comprends bien que match() est une m�thode pour l'objet string, ce que je ne comprends pas c'est pourquoi j'ai :
Code : S�lectionner tout - Visualiser dans une fen�tre � part
1
2
3
Error: str.match is not a function
Source File: file:///E:/root/Mes%20documents/Nouveau2.html
Line: 8
PS: bien s�r que je n'ai pas une heure d'experience javascript

merci d'avance de votre aide