Jump to content

Make links return false?


unemployment

Recommended Posts

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

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.