zoukankan      html  css  js  c++  java
  • document.execCommand() 使用

    <input type=button value=剪切 onclick=document.execCommand('Cut')>
    <input type=button value=拷贝 onclick=document.execCommand('Copy')>
    <input type=button value=粘贴 onclick=document.execCommand('Paste')>
    <input type=button value=撤消 onclick=document.execCommand('Undo')>
    <input type=button value=重做 onclick=document.execCommand('Redo') id=button2 name=button2>
    <input>
    <input type=button value=删除 onclick=document.execCommand('Delete')>
    <input type=button value=黑体 onclick=document.execCommand('Bold')>
    <input type=button value=斜体 onclick=document.execCommand('Italic')>
    <input type=button value=下划线 onclick=document.execCommand('Underline')>
    <input type=button value=停止 onclick=document.execCommand('stop')>
    <input type=button value=保存 onclick=document.execCommand('SaveAs')>
    <input type=button value=另存为 onclick=document.execCommand('Saveas',false,'c:\\test.htm')>
    <input type=button value=字体 onclick=document.execCommand('FontName',false,fn)>
    <input type=button value=字体大小 onclick=document.execCommand('FontSize',false,fs)>
    <input type=button value=刷新 onclick=document.execCommand('refresh',false,0)>

  • 相关阅读:
    SharePoint 2013 中的 URL 和标记
    负载均衡
    高可用集群
    客户端访问浏览器的流程
    【SDOI2014】数表
    【UR #5】怎样跑得更快
    【BZOJ2820】YY的GCD
    【SDOI2017】数字表格
    Codeforces 548E Mike ans Foam (与质数相关的容斥多半会用到莫比乌斯函数)
    【BZOJ2693】jzptab
  • 原文地址:https://www.cnblogs.com/twh/p/1651542.html
Copyright © 2011-2022 走看看