[Racine des codes] [Page précédente]

getHtmlCode

/Html JavaSript/getHtmlCode.html
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso8859-1">
<link rel="stylesheet" type="text/css" href="/include/aspect.css">
<script type="text/javascript">
function foo() {
  var d=document.documentElement.innerHTML;
  /*
  var s='';
  for(i=0;i<d.length;i++){
    c=d.charCodeAt(i);
    if (c<128)s+=d.charAt(i);
    else if (c==160)
      s+='&nbsp;';
    else s+='&#'+c+';';
  }
  */
  //w=window.open('view-source:data:text/html,'+s,'','menubar=yes,resizable=yes,scrollbars=yes');
  alert(d);
}
</script>
</head>
<body class="bgfixe" onload="foo()">

<div align='center'>
<br><br>
<img src="/images/sirocco.gif" width="456" height="127">
<br><br>
</div>

<div align='center'>
<table>
<tr>

  <td align='center'>

<form method="post" name="login" action="login.asp">

<table>
<tr>
  <th colspan='2'>Veuillez vous identifier</th>
</tr>
<tr>
  <td><b>Login :</b></td>
  <td><input name="User" value=""></td>
</tr>
<tr>
  <td><b>Mot de passe :</b></td>
  <td><input type="password" name="Mdp" value=""></td>
</tr>
</table>
<input type="submit" value="Valider" style="margin-top:10px;width:150px">

</form>

  </td>

</tr>
</table>
</div>
</body></html>
[edit]