How to clear google translate source text div using javascript?

I have a keyboard shortcut for running a JS scrip that opens google translate and translate selected text.I want to clear previous word in source text in googletranslate every time run this script.what should I write for it in last line ?

document.execCommand('copy');
var googleTranslate;
if(googleTranslate == undefined)
    googleTranslate= window.open("https://translate.google.com/?sl=en&tl=fa&op=translate","Translate");
else
    googleTranslate.focus();

1 thought on “How to clear google translate source text div using javascript?”

  1. 226929 916414Hey there. I want to to inquire somethingis this a wordpress weblog as we are thinking about shifting over to WP. Also did you make this theme on your personal? Thanks. 645669

    Reply

Leave a Comment