• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 17. Dynamic HTML: Drag and Drop,... > Dragging and Dropping Data

Dragging and Dropping Data

Besides dragging and dropping visual elements, you also can drag and drop data. This is already implemented in both Netscape Navigator 4+ and Internet Explorer 4+ to some extent. For example, you can select and drag page text in both browsers and drop it into another application (such as a word processor) or a text-oriented control in the same page. Here’s an example that just displays text and a text field:

(Listing 17-02.html on the web site)

<HTML> 
    <HEAD> 
        <TITLE>Dragging Selected Text</TITLE> 
    </HEAD> 

    <BODY> 
        <H1>Dragging Selected Text</H1> 
        Select some of this text and drag it to the text field! 
        <BR> 
        <INPUT TYPE=”TEXT” NAME="text1"> 
    </BODY> 
</HTML> 


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint