| 12
 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
 28
 29
 30
 31
 32
 33
 34
 35
 
 | <html>
 
<head>
 
<title></title>
<script type='text/javascript'>
function imprime(liste, imp)
  {
    var temp = document.getElementById(imp).innerHTML;
    var f = window.open("", "ZoneImpr", "height=500, width=600,toolbar=0, menubar=0, scrollbars=1,resizable=1,status=0, location=0, left=10, top=10");
    f.document.body.style.color = '#000000';
    f.document.body.style.backgroundColor = '#FFFFFF';
    f.document.body.style.padding = "10px";
    f.document.title = liste;
    f.document.body.innerHTML +=temp;
    f.window.print();
    f.window.close();
    return true;
  }
</script>
</head>
 
<body>
<div id='imp'>
val : 
<select name='test' id='test'>
       <option value='-1'> Aucun </option>
       <option value='2'> val 1 </option>
       <option value='3'> val 2 </option>
</select>
</div>
<input type='button' value='Imprimer' onclick="imprime('liste', 'imp');">
</body>
 
</html> | 
Partager