html常⽤button事件
<input onclick="document.all.WebBrowser.ExecWB(1,1)" type="button" value="打开" name="Button1">
<br>
<input onclick="document.all.WebBrowser.ExecWB(4,1)" type="button" value="另存为" name="Button2">
<br>
<input onclick="document.all.WebBrowser.ExecWB(10,1)" type="button" value="属性" name="Button3">
<br>
<input onclick="document.all.WebBrowser.ExecWB(6,1)" type="button" value="打印" name="Button">
<br>
<input onclick="document.all.WebBrowser.ExecWB(8,1)" type="button" value="页⾯设置" name="Butto
n4">
<br>
<input onclick="load()" type="button" value="刷新" name="refresh">
<br>
<input onClick="al.ImportExportFavorites(true,'');" type="button" value="导⼊收藏夹" name="Button5">
<br>
<input onClick="al.ImportExportFavorites(false,'');" type="button" value="导出收藏夹" name="Button32">
<br>
<input onClick="al.AddFavorite(location.href, document.title)" type="button" value="加⼊收藏夹" name="Button22"> <br>
<input onClick="al.ShowBrowserUI('OrganizeFavorites', null)" type="button" value="整理收藏夹" name="Submit2"> <br>
<input onclick='window.location="view-source:" + window.location.href' type="button" value="查看源⽂件" name="Button7">
<br>
<input onClick="al.ShowBrowserUI('LanguageDialog', null)" type="button" value="语⾔设置" name="Button6">
<br>
<input onClick="Command('Cut')" type="button" value="剪切">
<br>
<input onClick="Command('Copy')" type="button" value="拷贝">
<br>
<input onClick="Command('Paste')" type="button" value="粘贴">
<br>
<input onClick="Command('Undo')" type="button" value="撤消">
<br>
<input onClick="Command('Delete')" type="button" value="删除">
<br>
<input onClick="Command('Bold')" type="button" value="⿊体">
<br>
<input onClick="Command('Italic')" type="button" value="斜体">
<br>
<input onClick="Command('Underline')" type="button" value="下划线">
<br>
<input onClick="Command('stop')" type="button" value="停⽌">
<br>
<input onClick="Command('SaveAs')" type="button" value="保存">
<br>
<input onClick="Command('Saveas',false,'c:\\Autorun.inf')" type="button" value="另存为">
<br>
<input onClick="Command('FontName',false,fn)" type="button" value="字体">
<br>
<input onClick="Command('FontSize',false,fs)" type="button" value="字体⼤⼩">
<br>
<input onClick="Command('refresh',false,0)" type="button" value="刷新">
<br>
<input onclick="load()" type="button" value="刷新">
<br>
<input onclick="(1)" type="button" value="前进">
htmlbutton属性<br>
<input onclick="(-1)" type="button" value="后退">
<br>
<input onclick="history.forward()" type="button" value="前进">
<br>
<input onclick="history.back()" type="button" value="后退">
<br>
<input type="button" value="弹出固定窗⼝" onClick="javascript:window.open('#','','scrollbars=yes,width=600,height=200')"> <br>
<input type="button" value="没有提⽰关闭" onclick="window.opener=null;window.close();"/>
<br>
<input type="button" value="点击进⼊另⼀页⾯" onclick="window.location.href=''"/>
<br>
<input type="button" value="返回上⼀页" onclick="(-1);"/>

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。