I would like to do the following:
- Open a web page → login gmail → compose mail
- Open other web page → Select a bookmark, open a java webapp(worked in tomcat)
- The 开发者_运维问答webapp will copy some text into the above Gmail's Message Body
●if the two pages are different tabs in same browser , is it possible?
●bookmark uses bookmarklet(javascript).
You can try formulating something like this
http://mail.google.com/mail/?view=cm&fs=1&to=toaddress@domail.com&su=Subject&body=message&ui=1
and open it in a browser.
I don't think that's at all possible. You're talking about completely different applications.
I am not sure this is possible without exploiting any browser security flaws. A web app opened in a browser shouldn't be able to interact with anything on your computer, and especially an other browser window.
精彩评论