...

View Full Version : Help me - problem with function



linky
07-25-2002, 09:41 PM
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?

mordred
07-25-2002, 10:17 PM
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum