Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
javascript:
function HighlightAll(theField) {
var tempval=eval("document."+theField)
tempval.focus()
tempval.select()
if (document.all&©toclip==1){
therange=tempval.createTextRange()
therange.execCommand("Copy")
}
}
code behind:
Me.cmdCopy.Attributes.Add("OnClick", "javascript:HighlightAll('Timer.txtTotalTime')")
<script>
function copyImg(id){
var r = document.body.createControlRange();
r.add(document.getElementById(id));
r.select();
r.execCommand("COPY");
}
</script>
<body onload="copyImg('myimg')">
<img src="image.jpg" id="myimg">
</body>