Hide a line of code in javascript? java Tags?

I have this code for copying text to the clip board: <script> function Copy(n){ copyme=n textRange = document.body.createTextRange(); textRange.moveToElementText(copyme); textRange.execCommand("Copy"); } </script> <input type=BUTTON onclick=Copy(Copyit)... show more I have this code for copying text to the clip board:
<script>
function Copy(n){
copyme=n
textRange = document.body.createTextRange();
textRange.moveToElementText(copyme);
textRange.execCommand("Copy");
}
</script>

<input type=BUTTON onclick=Copy(Copyit) value="Copy"><span id=Copyit>First copied text</span>
<input type=BUTTON onclick=Copy(Copyit2) value="Copy"><span id=Copyit2>Second text to be copied</span>
<input type=BUTTON onclick=Copy(Copyit3) value="Copy"><span id=Copyit3>And finally the third</span>

I need to Hide the text that will be copied (First/Second/third copied text) What tag do i use?

Also I know <p> makes a new line but it also skips 1. so what can i use to separate the different copy to clipboard section?
2 answers 2