Skip to content
Advertisement

Can we create onclick popup without Javascript in CSS?

Can we create onclick popup without Javascript in CSS?

Advertisement

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.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement