Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to get width and locationOnScreen of browser where applet is embedded

 
f jimenez
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello guys,

is there a way to get the properties of the browser where an applet is embedded? i want to know the location on screen, width and visible rectangle of the browser...

is this possible?

thanks a lot.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You maybe able to use LiveConnect to access the JavaScript window object and its various properties (innerHeight, innerWidth, outerHeight, outerWidth). The Plugin Developer Guide has an example of an applet that does this. I don't think the location of the window on the screen is available.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic