pop-up a browse window,and it don't have status bar,tool bar,menu,and
its size can be set(for example,width=200,height=200),how to do it?
Is VC++ a Object Oriented? You can setup all the windows attribute at the beginning of application initializing.
Sorry,I should make me clear.
What I want to do is not a matter concerning VC++,but ASP or HTML.
I mean that I want to display a browser window whose size is just about 1/4
of the top-window,and don't have toolbar,menu,status bar,etc.So,how to use HTML
to construct this kind of browser window?
window.open(url,name,para) will open a new window
para controls the window's outlay
It will be any of these: menubar=yes/no scrollbars=yes/no status=yes/no
toolbar=yes/no location=yes/no resizable=yes/no width=xxx height=xxx
you can not control the browser's layout, you can only control browser's layout in html
you can control your window's layout fully!
I know your way, but there is a problem: use window.open you can get two browser
windows,one is the window you wanted, but the other one you don't need.I write a
sentence "parent.close()" before "window.open(url,name,para) " But you always get a messagebox asking"Do you want to close this window?" So bad!
between <head> and </head> add follow lines:(it affects only in IE)
<SCRIPT ID=clientEventHandlersVBS LANGUAGE=vbscript>
'window.resizeTo x,y will change window's size where x is window's width
(pixel), y is window's height(pixel).You can also use window.screen.height and
window.screen. width to determin your window's layout. for example: window.resizeto window.screen.width/2,window.screen.height/2 to get a window
which size is 1/4 screen
window.moveTo x,y will bring your window to anywhere you want.
I have tested this, it runs correctly!
You must try it in your machine again to test it's behavior!
If you close your window in Html, you will always get a alert!