got you, I think you are embedding a link to your html page, then you want to manipulate the DOM on the page you are inserting, right? If so, you can check the policies of the same browser origin.
If you want to make an online translation through Google, you can google "google translate api", google provides api to others for implementing online translation in their applications.
it looks like bing also provides api.i'm not sure.
source share