unemployment Posted May 10, 2011 Share Posted May 10, 2011 how can I make these links return false? if (info[x].reminder == 'assoc_requests') { var a = document.createElement('a'); var a2 = document.createElement('a'); a.href = '/accountSettings.php?tab=6'; a.title = 'Invite friends!'; a.id = 'associateRequests'; a.href = 'void(0)'; a2.href = '/accountSettings.php?tab=6'; a2.title = 'Invite friends!'; a2.className = 'f_right'; a2.id = 'associateRequests2'; a2.href = 'void(0)'; appendText(row, 'You have '); appendText(a, info[x].details); row.appendChild(a); if (info[x].details == 1) { appendText(row, ' Associate Request'); } else { appendText(row, ' Associate Requests'); } appendText(a2, 'View Associate Requests'); row.appendChild(a2); list.appendChild(row); } Link to comment https://forums.phpfreaks.com/topic/235980-make-links-return-false/ Share on other sites More sharing options...
gizmola Posted May 10, 2011 Share Posted May 10, 2011 If you want a link to do nothing, just have the href url be "#". Link to comment https://forums.phpfreaks.com/topic/235980-make-links-return-false/#findComment-1213216 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.