Click here to Skip to main content
15,910,358 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
var n1 = document.getElementById("n1"); // copy from "www.abc.com" this is current site
var n2 = document.getElementById("n2"); // paste to "www.xyz.com"
n2.value = n1.value;

What I have tried:

i have not tried,

how do i copy paste text value one site to another site by javascript
Posted
Updated 25-May-16 3:59am
Comments
Member 11663301 25-May-16 9:24am    
sir, thanx
Sergey Alexandrovich Kryukov 25-May-16 10:01am    
Note that the inquirer wants to modify not the current site, but another one. :-)
—SA
Karthik_Mahalingam 25-May-16 10:05am    
:-)
ya, just noticed.

1 solution

You cannot do it.
—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900