Bonjour,

voici le script :

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
19
20
21
22
23
24
25
26
27
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
	"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<title>Test URL</title>
 
 
</head>
<body>
<script type="text/javascript">
 
  function getLeftUrl() 
  {
      var url = new String();
      url='http://www.google.com';
      return url;
  }
 
  var test = new String();
  test = getLeftUrl;
  alert(test);
</script>
 
</body>
</html>
La fonction getLeftUrl doit renvoyer une cha�ne de caract�re.
La variable test doit contenir le r�sultat de la fonction getLeftUrl

R�sultat attendu :
R�sultat obtenu :
Code : S�lectionner tout - Visualiser dans une fen�tre � part
1
2
3
4
5
6
function getLeftUrl() 
  {
      var url = new String();
      url='http://www.google.com';
      return url;
  }
J'ai l'impression que la fonction n'est pas interpr�t�e...
Sauriez-vous pourquoi ?

merci d'avance