selected text

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • waste

    selected text

    hello. is it possible to copy selected text from DIV, TABLE or eg. P to
    form's TEXTAREA? I'm searching solution working on possibly all browsers.
    thank you.

    --
    waste

  • Ron

    #2
    Re: selected text

    waste wrote:
    [color=blue]
    >hello. is it possible to copy selected text from DIV, TABLE or eg. P to
    >form's TEXTAREA? I'm searching solution working on possibly all browsers.
    >thank you.
    >
    >
    >[/color]
    Not in a standard way. IE4+ uses the document.select ion object to refer
    to the current selection while Gecko-based browsers have the
    window.getSelec tion() method.
    See http://www.mozilla.org/docs/dom/domr...4.html#1000044
    and
    Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.

    ..

    Comment

    • waste

      #3
      Re: selected text

      2004-05-29 16:34:59, na comp.lang.javas cript, Ron napisa³(a):
      [color=blue]
      > Not in a standard way. IE4+ uses the document.select ion object to refer
      > to the current selection while Gecko-based browsers have the
      > window.getSelec tion() method.[/color]
      thank you. is there some method for Opera, too?

      --
      waste

      Comment

      • Martin Honnen

        #4
        Re: selected text



        waste wrote:
        [color=blue]
        > 2004-05-29 16:34:59, na comp.lang.javas cript, Ron napisa³(a):
        >
        >[color=green]
        >>Not in a standard way. IE4+ uses the document.select ion object to refer
        >>to the current selection while Gecko-based browsers have the
        >>window.getSel ection() method.[/color]
        >
        > thank you. is there some method for Opera, too?[/color]

        As far as I know not.
        --

        Martin Honnen


        Comment

        Working...