E
ericgorr
I have the following test page:
http://ericgorr.net/test.html
<html>
<head><title>Simple JavaScript</title></head>
<BODY ondragstart="alert(event.srcElement.tagName)">
<INPUT TYPE=text VALUE="Select and drag this text">
<SPAN >Select and drag this text</SPAN>
<TEXTAREA>Select and drag this text</TEXTAREA>
</BODY>
</html>
which I grabbed by googling 'ondragstart'. However, I never see an
alert appear.
Should this be working?
If not, why not and how can I get an alert to appear when selecting and
dragging the text?
If you do see an alert, any idea why I don't?
I've tried this page with Firefox 2.0RC3, Safari and IE6.
Thank you.
http://ericgorr.net/test.html
<html>
<head><title>Simple JavaScript</title></head>
<BODY ondragstart="alert(event.srcElement.tagName)">
<INPUT TYPE=text VALUE="Select and drag this text">
<SPAN >Select and drag this text</SPAN>
<TEXTAREA>Select and drag this text</TEXTAREA>
</BODY>
</html>
which I grabbed by googling 'ondragstart'. However, I never see an
alert appear.
Should this be working?
If not, why not and how can I get an alert to appear when selecting and
dragging the text?
If you do see an alert, any idea why I don't?
I've tried this page with Firefox 2.0RC3, Safari and IE6.
Thank you.