Copy All

Posted: November 2, 2007 in JavaScript Stuffs
Tags: , ,


Heading

Copy
All

Description

Copy
from text area ;

Preview

copy-all.jpg

Code

<html>

<head>

<script language=”Javascript”
type=”text/javascript”>

var fifteenth=1;

function sixteenth(seventeenth)

{

var eighteenth=eval(“document.”+seventeenth);

eighteenth.focus();

eighteenth.select();

if (document.all&&fifteenth==1)

{

nineteenth=eighteenth.createTextRange();


nineteenth.execCommand(“Copy”);

window.status=”Text is
copied to clipboard!”;


setTimeout(“window.status=””,1000);

}

}

</script>

<title></title>

</head>

<body>

<form name=”second2″>

<a href=”javascript:sixteenth(‘second2.third2’)”>
Copy All </a><br><br>

<textarea name=”third2″
rows=10 cols=35 >

We are Here to Share what
we get @ anywhere !

</textarea>

</form>

</body>

</html>

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s