We can open a small window known as child window by clicking a button or a link or a image of a main window. We can control the width, height and location ( alignment from top left corner of the screen ) of the small window from the main window.
<a href="javascript:void(0);" NAME="Error Handling"
title="ZeroDivisionError handling"
onClick=window.open("window-child.html","Ratting","width=550,height=170,left=150,top=200,toolbar=0,status=0,");>Click here to open the child window</a>
Here is a button to open the same window<input type=button onClick=window.open("window-child.html","Ratting","width=550,
height=170,left=150,top=200,toolbar=0,status=0,"); value="Open Window">
Take care of line break in above code.( Remove )
<a href="javascript:void(0);"
NAME="My Window Name" title=" My title here "
onClick=window.open("window-child.html","Ratting","width=550,height=170,0,status=0,scrollbars=1");>Click here to open the child window</a>
Click here to open the child window
| Thangavel | 20-08-2012 |
| thank you:friend:)how to pass the value from child window to parent window | |
| Peter | 25-08-2012 |
| Thank you! This helped me so much | |
| bhushan wagh | 28-05-2014 |
| Thanks a lot,it's really cool exam. | |
| Wenceslau | 22-07-2014 |
| Thank you. It helped me a lot. | |
| Jessilyn | 26-09-2014 |
| You just saved me hours of time. | |
| Thomas | 06-04-2015 |
| How to open sub window in the same page without new browser tag | |
| smo | 06-04-2015 |
| You can hide or display a layer by managing through css | |
16-06-2023 | |
| Can I do this with desktop app? | |
16-06-2023 | |
| How ca we open a desktop app in a child window of another desktop app? | |
22-07-2023 | |
| FRom the desktop add you can click the link with URL to open browser with the specified url. It depends on the app you are using. | |