Hi,
this solution copy to clip board working with all browser
I want to pass the value to function dynamically
like i have listview and and inside listview i have
linkbutton
label
and on click on link button i want to copy label value on clipboard.
thanks
<asp:TextBox ID="myText" runat="server"></asp:TextBox>
<asp:Button ID="Button1"
runat="server" Text="Button" OnClientClick="copier('myText')" />
<script type="text/javascript">
function copier(text) {
document.getElementById(text).select();
document.execCommand('copy');
}
</script>