Positioning a showModalDialog based on a button's position

  • Thread starter Thread starter Mark Rae
  • Start date Start date
M

Mark Rae

Hi,

Can anyone please tell me if there is a way to open a showModalDialog window
and position it so that its top and left screen co-ordinates are the same as
the top and left screen co-ordinates of the button which opened it?

I've tried all sorts of combinations of left, offsetLeft, pixelLeft,
window.event.x, window.event.y etc, but have thus far been unsuccessful in
getting this to work in all occasions.

Any assistance gratefully received.

Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top