I think probably you ask for removeNamedItem() method on attributes collection of each HTML element.
The sample below works fine on IE, FireFox, Opera, Safari and probably others.
<html>
<head>
<style>
.links{
color:green;
font-weight:bold;
}
</style>
</head>
<body>
<div id="links">
<a href="#" class="links"
onclick="this.attributes.removeNamedItem('class')">link1</a>
<a href="#" class="links"
onclick="this.attributes.removeNamedItem('class')">link1</a>
<a href="#" class="links"
onclick="this.attributes.removeNamedItem('class')">link1</a>
</div>
<div
onclick="this.attributes.removeNamedItem('title')"
title="My tooltip">
When you click this DIV ToolTip will be inactivated.
</div>
</body>
</html>