TravisMath
03-15-2005, 02:17 AM
In this code
<script language="JavaScript" type="text/javascript">
document.write("<form name='it'>
<div align='center'>
<input onclick='copyit('it.select1')' type='button' value='Press to Copy the Text' name='cpy'> <p> <textarea name='select1' rows='3' cols='25'> If this is highlighted, then it has been copied. </textarea> </div> </form>");
Since you have to use ' ' for any html tags that require quotation marks anywhere in the document.write function is there a way to go inside a ' '. or is there a way to at least get the code to work. The only area i need it to work is when i enter in html code onClick="copyit('it.select1)" since the regular quotation marks become apostraphes.
If what I am trying to ask is to confusing to understand please let me know.
Thanks very much.
<script language="JavaScript" type="text/javascript">
document.write("<form name='it'>
<div align='center'>
<input onclick='copyit('it.select1')' type='button' value='Press to Copy the Text' name='cpy'> <p> <textarea name='select1' rows='3' cols='25'> If this is highlighted, then it has been copied. </textarea> </div> </form>");
Since you have to use ' ' for any html tags that require quotation marks anywhere in the document.write function is there a way to go inside a ' '. or is there a way to at least get the code to work. The only area i need it to work is when i enter in html code onClick="copyit('it.select1)" since the regular quotation marks become apostraphes.
If what I am trying to ask is to confusing to understand please let me know.
Thanks very much.