[javascript] printPage

Pagina: 1
Acties:
  • 32 views sinds 30-01-2008

  • Ronald_stage
  • Registratie: Januari 2002
  • Laatst online: 11-09 21:45

Ronald_stage

wat kan je hier nog zeggen

Topicstarter
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?

  • Janoz
  • Registratie: Oktober 2000
  • Laatst online: 12-09 21:31

Janoz

Moderator Devschuur®

!litemod

1. dit is javascript


Je form gaat op zoek naar het bestand "Printpage()". Je moet ff duidelijk aangeven dat het javascript is :).

Ken Thompson's famous line from V6 UNIX is equaly applicable to this post:
'You are not expected to understand this'


  • wasigh
  • Registratie: Januari 2001
  • Niet online

wasigh

wasigh.blogspot.com

javaSCRIPT P&W --> W&G

  • Ronald_stage
  • Registratie: Januari 2002
  • Laatst online: 11-09 21:45

Ronald_stage

wat kan je hier nog zeggen

Topicstarter
EEh ja JavaScript dat is toch een Webscript ik zit hier toch in Programming & Webscripting? niet dan?
ik hoopte dat iemand ziet wat ik fout doe?

Verwijderd

Ken je google ??

  • Bosmonster
  • Registratie: Juni 2001
  • Laatst online: 29-08 19:47

Bosmonster

*zucht*

Enige consistentie is ook wel nuttig:

function printPage(){

action="PrintPage()">

Gezien de case-sensitivity..

  • McVirusS
  • Registratie: Januari 2000
  • Laatst online: 10-09 10:16
Pagina: 1

Dit topic is gesloten.