- Computers & Software»
- Computer Science & Programming»
- Programming Languages
Sometimes you may see the need to have a smaller sized window or browser when a user clicks on a link. This is helpful for Help Topics, Static Information, or just anything that doesn't need the full browser opened. You can also control the scrollbars, toolbar, status bar, location bar, width, height and location on the screen.
<!--Hide script from old browsers
winContent = window.open(newContent, 'nextWin', 'right=10,top=20,width=350,height=300,toolbar=no,scrollbars=yes,resizable=yes,location=no,status=no')
//Stop hiding script from old browsers -->
HTML Link That Generates The Pop-Up
You will need to create a web page, popup.html, which would have the information that you want to display within the pop-up window.