run javascript function from frameset

Discussion in 'JavaScript' started by pom4ik, Aug 4, 2010.

  1. #1
    HI All,

    i am trying to run a javascript function in a frameset webpage.
    there are two frames (left,right) the right frame is an external website. and the left frame is local.

    on the external page there is a submit button which executes ("show()") which is a javascript function.

    can i run it from the left frame?

    thanks
     
    pom4ik, Aug 4, 2010 IP
  2. Rainulf

    Rainulf Active Member

    Messages:
    373
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    85
    #2
    Yeah, I think you can. With something like this:
    
    parent.FRAMENAME.show();
    
    Code (markup):
    The keyword is this, parent.FRAMENAME

    A little Google wouldn't hurt. :)
     
    Rainulf, Aug 4, 2010 IP
  3. pom4ik

    pom4ik Greenhorn

    Messages:
    31
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    16
    #3
    i tried google already and also tried the code sample you suggested .... I will give it another try ... and post the error message i get
    thanks
     
    pom4ik, Aug 4, 2010 IP