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); } Quote Link to comment 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 "#". Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.