<html>
<head>
<script language="javascript">
function maak_frame(){
// IE en FF werken anders: dus kijkt hij hoe hij het moet toepassen
if(window.navigator.appName == "Microsoft Internet Explorer")
iframe.document.designMode = "on";
if(window.navigator.appName == "Netscape")
document.getElementById('iframe').contentDocument.designMode = "on";
}
function vet() {
document.getElementById("iframe").contentWindow.document.execCommand("bold", false, null);
}
function schuin() {
document.getElementById("iframe").contentWindow.document.execCommand("italic", false, null);
}
function onderstreept() {
document.getElementById("iframe").contentWindow.document.execCommand("underline", false, null);
}
</script>
</head>
<body onLoad="maak_frame()">
<img src="vet.gif" onClick="vet()"> <img src="schuin.gif" onClick="schuin()"> <img src="onderstreept.gif" onClick="onderstreept()"> <br>
<iframe id="iframe" height="300" width="600"></iframe>
</body>
</html>
|