Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to write text into Gmail Message Body by other browser

 
umibe hosizora
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I would like to do the following:

1. Open a web page → login gmail → compose mail
2. Open other web page → Select a bookmark, open a java webapp(worked in tomcat)
3. The webapp will copy some text into the above Gmail's Message Body

●bookmark uses bookmarklet(javascript).
 
umibe hosizora
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if the two pages are different tabs in same browser , is it possible?
 
Rob Spoor
Sheriff
Pie
Posts: 20492
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Proper browsers disallow this, as this behaviour (called cross-site scripting, or XSS) offers a great potential for hacking sites.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic