Popup open but always under

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
 
G

Guest

It's a timing problem.

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

/Kenneth
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top