Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opening a new browser window
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Divers
Thread ID:
00919861
Message ID:
00919890
Vues:
7
>I have a web form with the usual collection of stuff on it, and about a dozen panels. I use buttons to change the VISIBLE property of the panels.
>I have one button that I'd like to use to open a new browser window, but I've never done that before and I don't see anything in the .Net help system to tell me how to do it...
>
>Could someone post a code snip-it showing me what I need to do.
>Thank you.
>Rick

The open() method of the window object is the way to go:
window.open('Newpage.htm','mywindow','width=640,height=460,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=no,resizable=yes');
As you can see, there is a lot of properties that can be set in the 3th parameter: toolbar, statusbar, height. width, ...
For more help look in a javascript site (or search "open window javascript" in google).

HTH :)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform