I'm trying to open a new window using window.open written within xsl. the following works fine on FireFox, and Netscape. However, it opens a new window and also duplicates my menu html frame. What am i missing? this is main html. saari opens menu.html under the exsisting menu.html. <frameset rows="50,*" framespacing="0" frameborder="no" border="0"> <frame src="menu.html" name="menu" id="menu"> <frame src="section01.xml" name="main" id="main"> </frameset> <noframes><body> </body></noframes> HTML: this is my xsl <script language="JavaScript"> <![CDATA[ var subWin=''; function image(Pic,wVal,hVal,pTitle){ subWin = window.open("",Pic,"width="+ wVal + ",height=" + hVal +",top=0,left=0"); subWin.document.open(); subWin.document.write('<html><head><title>'+pTitle+'<\/title><\/head><body background="'+ Pic +'"><\/body><\/html>'); subWin.document.close(); } ]]> </script> HTML: my onClick <xsl:element name="A"> <xsl:attribute name="href"><xsl:text>#</xsl:text></xsl:attribute> <xsl:attribute name="onClick"> <xsl:text>image(</xsl:text> <xsl:text>'</xsl:text><xsl:value-of select="PIC" /><xsl:text>'</xsl:text> <xsl:text>,</xsl:text> <xsl:value-of select="PICW" /> <xsl:text>,</xsl:text> <xsl:value-of select="PICH" /> <xsl:text>,</xsl:text> <xsl:text>'</xsl:text><xsl:value-of select="PTITLE" /><xsl:text>'</xsl:text> <xsl:text>)</xsl:text> </xsl:attribute> HTML: