Site Map

 

iCents.Remove Function

If you want to destroy a paid-link so that is doesn't display a price and doesn't work as a link when clicked:

Syntax:

iCents.Remove(element reference)

 

For example, the following paid-link is initially worth 10 cents. After it has been paid, it triggers a function that destroys the link:

click here

 

<a id="test" price="US$ 0.10" onafterok="DestroyLink()" href="javascript:void(0)">click here</a>

<script>

function DestroyLink()
   {   
   var testElement = document.getElementById("test");
   iCents.Remove(testElement);
   }
   
</script>

You can reload the page to have the paid-link back.