javascript variable in input value
<p>I have some problem.
This is my code snippets : </p>

<pre><code>FB.api('/me', function(me){
  if (me.id) {
  alert(me.id);
  //alert(me.email);
  var fbmail = me.email;
  alert(fbmail);
  document.write('&lt;input id="mail" type="hidden" value="'+fbmail+'"&gt;');                    
  var retro = document.getElementById('mail').value;
  alert(retro);                    
})
</code></pre>

<p>My problem is that there is no alert(retro); :(
Can you tell me what's wrong??? </p>
