Popup open but always under

  • Thread starter Thread starter Gilles T.
  • Start date Start date
G

Gilles T.

Hi,

I have this code:
<script language="VB" runat="server">
Sub cmdImprimer_Click(sender As Object, e As System.EventArgs)
Page.RegisterStartupScript("openWindow","<script
language='JavaScript'>window.open('dialog.aspx,'Rapport','toolbar=no,locatio
n=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,widt
h=900px,height=700px').focus();<" & "/" & "script>")
end sub
</script>

<center>
<asp:Button CssClass="InputButton" ID="cmdPrint" runat="server"
Text="Imprimer" OnClick="cmdImprimer_Click" />
</center>


My popup window open and execute good but always UNDER my current window.
How I can write my code to have my popup window over my current window?

Thanks
 
It's a timing problem.

Add a JS setTimeout for about 200 ms. to the window.open,
something like ... 'Javascript'>setTimeout(window.open(....

/Kenneth
 
Back
Top