"Real software engineers work from 9 to 5, because that is the way the job is described in the formal spec. Working late would feel like using an undocumented external procedure."
Verwijderd
een functie in het document binnen het iframe als
document.onclick = alert('hoi');
of
docuemtn.onfocus = alert('hoi');
zal denk ik wel werken.
iets in de richting van:
document.onclick = parent.[functienaam]; zal ook werken.
suc6 ermee
Verwijderd
1
2
3
| window.frames["idEdit"].document.onmousedown = function (e) {
alert('you clicked me!');
} |
@tgf_78 -- ook jouw code heeft geen resultaat. Je uitleg over apart document heeft me wel geholpen -> als ik op <body onload> alvast iets in het iframe wil zetten, werkt het volgende perfect:
1
| idEdit.document.write('kaas'); |
maar hiermee staat het originele probleem nog open...
[ Voor 57% gewijzigd door Reveller op 30-04-2004 18:58 ]
"Real software engineers work from 9 to 5, because that is the way the job is described in the formal spec. Working late would feel like using an undocumented external procedure."
Verwijderd
hoofd document
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| <html>
<head>
<title>main</title>
</head>
<script>
function test123()
{
alert('koe');
}
</script>
<body>
bla bla bla bla bla<br>
<iframe src="frame.html"></iframe>
<br>bla bla bla bla
</body>
</html> |
frame document
1
2
3
4
5
6
7
8
9
10
11
12
| <html>
<head>
<title>frame</title>
</head>
<script>
document.onclick = parent.test123;
</script>
<body>
koe doet moe
</body>
</html> |
suc6
[ Voor 23% gewijzigd door Verwijderd op 30-04-2004 21:14 ]