修复buttonclick属性 [英] Fixing buttonclick properties
本文介绍了修复buttonclick属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个像这样的按钮
< input type ="submit" value ="Submit">
我想要当我单击按钮时,它实际上将充当"ctrl + p"....
什么是简单的方法?
I have a button like this
<input type="submit" value="Submit">
I want when I click on the button it actually will act as "ctrl+p"....
Whats the easy way to do that???
推荐答案
<input type="submit" value="Submit" onclick="window.print()"></input>
尝试一下.. :)
try this.. :)
<button önclick="javascript:window.print();">Print</button>
这篇关于修复buttonclick属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文