复制到剪贴板(添加按钮到javascript函数)

时间:2017-02-23 21:45:42

标签: javascript button copy

我想在我的javascript代码中插入一个按钮,将此消息复制到剪贴板。

“文字已成功复制”

有什么想法吗?

<html>

<table>

	<tr>

		<th>CHILE</th>
		
	</tr>

	<tr>

		<td id="fM"></td>
		
	</tr>

<script>

	function Chile(){
	    document.getElementById("fM").innerHTML = "Text copied succesfully";}
	Chile();

	
	
</script>
	
</table>
	
</html>

0 个答案:

没有答案
相关问题