/    Sign up×
Community /Pin to ProfileBookmark

ActiveX Copy/Paste

Hey,
I’m looking for a simple code that can get your
clipboard’s data into a javascript varible onload.
I recall that you can do this with ActiveX and I forgot how.

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@UltimaterauthorFeb 09.2005 — Hmm, my bad,

I thought it was by defining a new activeX Object.

I found some think simular on the web:
<i>
</i>window.clipboardData.setData("text","copy this text to clipboard");

But that [b]copys[/b] text into the clipboard,

I want to [b]obtain[/b] the info from the clipboard and store it

into a varible.
Copy linkTweet thisAlerts:
@UltimaterauthorFeb 09.2005 — lol,

forget it!

I did a search in yahoo for [i]window.clipboardData[/i]

and found this:

<i>
</i>clp = window.clipboardData.getData("Text");
Copy linkTweet thisAlerts:
@BigMoosieMay 10.2005 — Be warned, that only works in IE.
Copy linkTweet thisAlerts:
@UltimaterauthorMay 10.2005 — Yup, I know, I only have one browser. ?

You had to pull-up a 3-month-old thread to tell me that? :rolleyes:
Copy linkTweet thisAlerts:
@BigMoosieAug 17.2005 — Oh, sorry, I didnt realise it was that old...
×

Success!

Help @Ultimater 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.2,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

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