Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mouse click events and the clipboard

Status
Not open for further replies.

dpdoug

Programmer
Nov 27, 2002
455
US
I need to do things in javascript:

1) Capture a left mouse click
2) Store contents of text box in clipboard (on left mouse click)

3) Capture a right mouse click
4) Paste contents of clipboard to a text box (on right mouse click)

Is this possible? If so, does anyone have an example of how todo it?
 
If they're textboxes on the same page, you don't need to store the value in the clipboard, just in a variable.

Lee
 
See, I want to copy the value to a text box in another form on another site. The visibility of a variable is limited to that page pretty much -- or the site if the variable is a global.

How do you get the value from one site to another -- without copy and pasting?

I'd like to try to do it by mouse clicks if possible.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top