Jitendra Vyas Jitendra Vyas - 6 months ago 8
Javascript Question

Can we create onclick popup without Javascript in CSS?

Can we create onclick popup without Javascript in CSS?

Answer

No, you can't. You have to use script to wire an event handler for onlcick.

<a href="Somepage.html" target="_blank">Click me</a>

and the user agent decides whether the page should be opened in a new window or tab.

If you need a new popup window with custom size you have to use

window.open

and you can't use that without script.