• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

how to write text into Gmail Message Body by other browser  RSS feed

 
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?
 
Sheriff
Posts: 21463
97
Chrome Eclipse IDE Java Spring Ubuntu VI Editor 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
Boost this thread!