Open another smaller window

  • Thread starter Thread starter Samuel Shulman
  • Start date Start date
S

Samuel Shulman

Hi

I would like to open another smaller window on top of the existing window,
how can I do that?

Thank you,
Samuel
 
All "opening of windows" when a page is loaded in the browser must be done
with client script. You can do this many ways, one of the simplest, just to
experiment with , is:

string scr= @"window.open('', tinyWindow', 'toolbar,width=150,height=100') ;
myWindow.document.write('Welcome to this new window!');
myWindow.document.bgColor='lightblue';";

Response.Write("<script>" +scr + "</script>");


Hope that helps.

Peter
 
NOTE: There are some syntax errors in the code I posted, but you get the
general idea. You can also use the ClientScript methods of the Page class.
Peter
 
Back
Top