Hi, Every Guru,
I'd like to put a button on a page. When clicking the button, the
table below it gets selected so the user can do Ctrl C to copy the
entire table without using the mouse to select the table which can be
big. How do I do it using javascript? I tried:
<INPUT TYPE=Button NAME='Select' SIZE='10' VALUE='SelctTab le'
onClick="docume nt.MyTable.sele ct();">
<table name = MyTable border=1>
<tr><td>This is the table</td></tr>
</table>
I got error "document.MyTab le is null or not an object".
Could anyone help please? Thanks in advance!
Botao
I'd like to put a button on a page. When clicking the button, the
table below it gets selected so the user can do Ctrl C to copy the
entire table without using the mouse to select the table which can be
big. How do I do it using javascript? I tried:
<INPUT TYPE=Button NAME='Select' SIZE='10' VALUE='SelctTab le'
onClick="docume nt.MyTable.sele ct();">
<table name = MyTable border=1>
<tr><td>This is the table</td></tr>
</table>
I got error "document.MyTab le is null or not an object".
Could anyone help please? Thanks in advance!
Botao
Comment