code:
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
28
29
30
31
32
| <html>
<head>
<title>RAR</title>
<script LANGUAGE="JavaScript">
<!--begin
function printPage(){
if (window.print) {
agree = confirm('Dit is een test!\n U moet deze pagiona printen.\n\n Ok to Print?');
if (agree) window.print();
}
}
// End -->
</script>
</head>
<body bgcolor="#FFFFFF">
<ul>
<li>Testje</li>
</ul>
<form method="POST" action="PrintPage()">
<p><input type="button" value="PrintPage"></p>
</form>
</body>
</html> |
kan iemand mij uitelggen wat ik fout doe?
ik bedoel eerst definieer ik wat er moet gebeuren dan geef ik aan wat de action van de button is? of zie ik het nu helemaal verkeerd?