This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design 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: 20511
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic