Hi all, I am using javascript for setting url for frame control it works in IE properly but in FireFox it shows that 'parent.frame is not a function'. Please help me my code --------------------------------------------------------------------------------------------------------------- <frameset rows='175, *' framespacing='0' frameborder='0'> <frame name='headerFrame' id='headerFrame' frameborder='0' scrolling='No' noresize> <FRAME NAME='targetFrame' > </frameset> <script type ='text/javascript' > alert(parent.frames(0).location); </script> ----------------------------------------------------------------------------------------------------------------- Thanks Ravi Singh
I think to be cross browser compatible you have to name each frame and target the frame names. You can probably find some samples here: http://www.faqts.com/knowledge_base/index.phtml/fid/53/ Salute, Mark
Hi Mark, I used following syntax too. But it is not working still. ------------------------------------------------------------------ <frameset rows='175, *' framespacing='0' frameborder='0'> <frame name='headerFrame' id='headerFrame' frameborder='0' scrolling='No' noresize> <FRAME NAME='targetFrame' > </frameset> <script type ='text/javascript' > parent.headerFrame.location='About:blank' </script> ------------------------------------------------------------------------ Thanks for reply Ravi
may be this will help http://www.webdeveloper.com/forum/showthread.php?t=111646 Bruce DiscountASP.NET www.DiscountASP.NET