aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Popup Window Position Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Popup Window Position" Watch "Popup Window Position" New topic
Author

Popup Window Position

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1446
    
    1
I would like to have a window open at the cursor position. The following will work but does not place the window on the point I click. Also this will not work if the function is called from a hyperlink tag(javascript:"cursortest()")

Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Why are you using moveTo? There is top/left

https://developer.mozilla.org/En/DOM/Window.open

Also your code is not cross browser friendly. window.event is IE only.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Popup Window Position