Jump to content

Prevent Default


unemployment

Recommended Posts

I am loading a link with ajax. When the link pops on the screen and I click it, I get redirected to my 404 page and my lightbox doesn't load.

 

If the link pops in and I refresh my browser, then I click the link my lightbox will show up.

 

How can I do a prevent default on the <a href> in pure JS? No frameworks please.

Link to comment
https://forums.phpfreaks.com/topic/235957-prevent-default/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.