Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. iFrame and javascript

iFrame and javascript

Scheduled Pinned Locked Moved Web Development
javascript
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cmarmr
    wrote on last edited by
    #1

    i have a web page which has i frame on it and in that frame i have another web pag with controls on it is there a way i can use javascript to set a textbox inside the frame view chad

    J V P 3 Replies Last reply
    0
    • C cmarmr

      i have a web page which has i frame on it and in that frame i have another web pag with controls on it is there a way i can use javascript to set a textbox inside the frame view chad

      J Offline
      J Offline
      JKroschel
      wrote on last edited by
      #2

      Try this: parent.html function changeText(){ window.myframe.document.childform.mytext.value="hello" }

      child.html

      1 Reply Last reply
      0
      • C cmarmr

        i have a web page which has i frame on it and in that frame i have another web pag with controls on it is there a way i can use javascript to set a textbox inside the frame view chad

        V Offline
        V Offline
        Vasudevan Deepak Kumar
        wrote on last edited by
        #3

        Hi Chad: If you the pages are from same site/domain, you may be allowed to check and set. But even if domains vary a bit you would encounter Permission Denied from JavaScript Deepak Kumar Vasudevan Personal Web: http://vdeepakkumar.netfirms.com/ I Blog At: http://deepak.blogdrive.com/

        1 Reply Last reply
        0
        • C cmarmr

          i have a web page which has i frame on it and in that frame i have another web pag with controls on it is there a way i can use javascript to set a textbox inside the frame view chad

          P Offline
          P Offline
          pigangel_yang
          wrote on last edited by
          #4

          example: main.htm parent.myframe.document.all.mytext.value="it's my lover"; tt.htm d

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups