Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Javascript
How to select a table clicking a button?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Botao, post: 4730327"] 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='SelctTable' onClick="document.MyTable.select();"> <table name = MyTable border=1> <tr><td>This is the table</td></tr> </table> I got error "document.MyTable is null or not an object". Could anyone help please? Thanks in advance! Botao [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Javascript
How to select a table clicking a button?
Top