object.execCommand(sCommand [, bUserInterface] [, vValue])
sCommand Required.       String that specifies the command to execute.            
                         command can be any of the command identifiers that can 
                         be executed in script. 
bUserInterface           Optional. Boolean that specifies one of the following 
                         values.
                         false Default. Does not display a user interface. 
                         true Displays a user interface, if the command supports 
                         one. 
vValue                   Optional. Variant that specifies the string, number, or
                         other value to assign. Possible values depend on 
                         sCommand . eg
<script>
function aa()
{
document.execCommand("CreateLink");
}
</script>
<input type=button onclick=aa()>