Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help me - problem with function

    Help me please!
    In my www page there is 3 frames
    The first content javascript, whitch write second frame:

    parent.fr_2.document.write("<input type='button' onclick='fn_izbor()'>")

    After pressing the button, will starting function 'fn_izbor()',
    Location of source of 'fn_izbor()' is in the first frame, and its purposes -
    writing frame 3.

    Script not working propertly. Why? How I must calling function in js?

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    frankfurt, german banana republic
    Posts
    1,848
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Difficult to answer, cause it's not clear how your frameset acutally looks like. But try it with

    parent.fr_2.document.write("<input type='button' onclick='top.fr_1.fn_izbor()'>")

    what assumes that your "first" frame is called "fr_1". Replace that with your frame name if needed.


  •  

    Posting Permissions

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