Frames and Javascript

Results 1 to 2 of 2

Thread: Frames and Javascript

  1. #1
    Harish babu Guest

    Default Frames and Javascript

    I have two frames left and right. In the left i have button and in the right an empty(initiallY)list box(mutiple selection box).when i click on the button in the left frame i should add text(say -"trial") to the option in the right frame through javascript<BR><BR>thanks in advance

  2. #2
    sigma Guest

    Default RE: Frames and Javascript

    The onclick event handler of the button on the left frame should be(assuming the right frame is named rightframe.<BR>var el=window.parent.frames["rightframe"].document.createElement("option")<BR>el.value="tri al"<BR>el.text="trial"<BR>window.parent.frames["rightframe"].document.all("listbox1").add(el)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts