/    Sign up×
Community /Pin to ProfileBookmark

Using Keypress event

I am not sure if I am calling this the right thing, but, I am trying to do something specific using Javascript in a webpage. I have tried searching for this, but, have not yet found what I am looking for.

This webpage is a documentation help where I work, and requires me to input Phone, Name, and Ticket number along with troubleshooting steps taken to arrive at the end of the call.

What I want to do is capture the Phone number and paste it where ever I wish. What the form does right now, is after I am finished with most of the call, I click a button that highlights a section so I can copy and paste it somewhere else. I then type the ticket number into the proper field, hit refresh again so I can cut and paste notes into another system. This must be available to other applications using the same keypress, not just on the webpage.

Many systems we use require a phone number, and with the actions above cutting and pasting the phone field manually at the beginning of the call isn’t the best way to operate. Therefore, I would like to capture the phone field so I can say hit CTRL-??? or ALT-??? to paste the phone number at the cursor location.

Thanks in advance for any help that anyone here can give.

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@FangMay 15.2005 — Paste the number to the [URL=http://www.krikkit.net/howto_javascript_copy_clipboard.html]clipboard[/URL]
×

Success!

Help @glen4cindy spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...