hello this code can work :

Code:
<html> 
<head> 
<title> Using execCommand to bold text </title> 
<script language="JavaScript"> 

function Init() 
{ 
iView.document.designMode = 'On'; 
} 

function boldIt() 
{ 
iView.document.execCommand('bold', false, null); 
} 

</script> 

<body > 
<iframe id="iView" style="width: 200px; height:70px"></iframe> 
<br><br> 
<input type="button" onClick="boldIt()" value="Toggle Bold">
<input type="submit" onclick="Init()">
 
</body> 
</html>
I change it like this :

Code:
<html> 
<head> 
<title> Using execCommand to bold text </title> 
<script language="JavaScript"> 

function Init(objec) 
{ 
objec.document.designMode = 'On'; 
} 

function boldIt() 
{ 
iView.document.execCommand('bold', false, null); 
} 

</script> 

<body > 
<iframe id="iView" style="width: 200px; height:70px"></iframe> 
<br><br> 
<input type="button" onClick="boldIt()" value="Toggle Bold">
<input type="submit" onclick="Init('iView')">
 
</body> 
</html>

The buttom code can not work in IE 6 SP2

What should I do ?