Jump to content

stop refresh onclick


c_pattle

Recommended Posts

This may not the best place to post this but I'm sure quite a few people here can help.  I have an a tag which uses the event trigger "onClick"  However when I click on this link the page refreshes.  Is there anyway I can stop this?  I have copied my code below. 

 

<a href=\"#\" class=\"" . $a[$i] . "\" onClick=\"locationValue('" . $a[$i] . "', '" . $_GET['search_type'] . "')\">

Link to comment
https://forums.phpfreaks.com/topic/215501-stop-refresh-onclick/
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.