javascript is opening 2 pop up windows

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Himzi
    New Member
    • Jul 2008
    • 9

    javascript is opening 2 pop up windows

    Hi,
    I am using window.open() in my code to open a pop up window. This code works fine on IE but on Mozilla it opens 2 pop up windows. The first one is blanks and the open one has the needed data in it.
    I cant figure out why this is happening. Can some one please help?

    Thanks,
    Himzi
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    please post the code that makes this problem ...

    kind regards

    Comment

    • Himzi
      New Member
      • Jul 2008
      • 9

      #3
      [HTML]<html>
      <frameset cols="20%,*" frameborder="NO " border="0" framespacing="0 " rows="*">
      <frame name="logoFrame " scrolling="NO" noresize src="logoframe. htm">
      <frame name="topMenu" src="/servlet/Menu">
      </frameset>
      </html>
      [/HTML]

      the code of bott.html is :


      [HTML]<frameset cols='<%=size%> %,*' frameborder='NO ' border=\'0' framespacing='0 ' rows='*'>
      <frameset rows='245,*' frameborder='NO ' border=\'0' framespacing='0 ' rows='*'>
      <frameset rows='*,18' frameborder='NO ' border='0' framespacing='3 ' rows='*'>
      <frame name='settings' scrolling='no' noresize src='test.html' >
      <frame name='leftTopFr ame' scrolling='no' noresize src='new.html'>
      </frameset>
      <frameset rows='*,40' frameborder='NO ' border='0' framespacing='0 ' rows='*'>
      <frame name='leftFrame ' scrolling='yes' noresize src='record.htm l'>
      <frame name='leftBottF rame' scrolling='no' noresize src='blank.html '>
      </frameset>
      </frameset>
      <frame name='report' src='newpage.ht ml'>
      </frameset>

      [/HTML]
      In the logoframe.htm there is a form , whose target i set as "report" frame.

      document.form1. target="report" ;


      But instead of opening in the report frame in the same window it just opens another window.
      Please help.

      Thanks,
      Himzi
      Last edited by gits; Sep 21 '08, 09:27 AM. Reason: use [code]-tags correct

      Comment

      Working...