v wrote:
Hi,
For some reason the onMove event handler doesnt seem to work.
Am I doing it right? The script is in a popup window.
rgds,
v
<html>
<body onMove="self.moveTo(250,50)">
</body>
</html>
Adding an onmove event handler to the <body> simply catches any
elements that are moved on the page, it doesn't detect when the
window is moved. Thank goodness, because if it did, it would
allow such silliness as what you've got above. It's my desktop,
if I want to put the window in the bottom right corner, or on a
second monitor, why aren't you letting me?
Your Web page and the windows the comprise it aren't the only
thing on my desktop (in fact, I may not even let you open new
windows on my desktop), or even the desktop of people in a
corporate environment who might be using your Web-based
application. Nailing a window to a location that might be
inconvenient for the user is being actively hostile.
See <url:
http://msdn.microsoft.com/workshop/a...nts/onmove.asp
/> for an example of how <body onmove="..."> is used.
--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ -
http://jibbering.com/faq