However to open the links in a separate popup window, we can make use of the onclick property and specifying a inline JavaScript code window.open as shown below. In order to open them in a new window, we add target="_blank" attribute to links. Normally links get opened in the same window in which they are clicked in. In this post, I will show how we can easily define click behavior on links to open them in a popup along with some customization options such as sizing the popup window. However there may be a genuine need for opening links in a popup window in web applications. Popup windows are not always desirable and are most likely frowned upon by many due to it being infamous for being used to open advertisements.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |