Open another smaller window

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
 
G

Guest

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
 
G

Guest

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
 

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top