Discussion Locked

Annotate in Browser

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hello Everybody,

I have a question. I want to display a button in the HTML page which should facilitate me to copy the contents that are selected by me in the displayed web page and I should be able to paste it somewhere (As Copy, Paste functionality available in browser). This should work in both browsers.

Please let me know the answer ....?

Thanx for your reply.

5 replies

by mukul_gandhi

As to my knowledge, it should not be possible with plain HTML and JavaScript programming. But with a Java Applet it should be possible. You need to interface Java with JavaScript. You can access system clipboard using Java APIs which will facilitateu to cut,copy,paste. But again this is not possible with untrusted applets. You will need signed applets for this.

regards
-mukul

by rwiseman

...

...

...

Unfortunately, this is an IE4.0+ specific ability. The createRange function creates a text range object which includes whatever text is selected on the page. The Copy command is them executed which places the selected text to the clipboard.

Robert Wiseman

This discussion is closed to new replies.