Opening a pop-up window

Pop-up browser windows have received mixed reviews in recent years. Originally created, before tabbed browsers existed, to display additional information without interfering with the page the user had navigated to, they were quickly hijacked and used to display advertisements and spam. Pop-ups should be used sparingly in applications and wherever possible in response to an action by the user.

The target attribute can be specified as _blank on HTML hyperlink tags to open the link in a new window, but all modern browsers allow the user to specify that new windows should be opened as new tabs instead. Also, if the browser does open the URL in a new window, it will be of the same size as the existing window and block most of ...

Get Visualforce Development Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.