home / software / tips and tricks / How to convert the hyperlink to a normal text using JavaScript?

How to convert the hyperlink to a normal text using JavaScript?

Updated:  09/23/2012 11:09 AM
Author:  Shiju Mathews

Status:    Resolved.


XML DOM's removeAttribute() Method, can be used to remove the link(rhef) property of a hyperlink. The removeAttribute() method removes a specified attribute.

If a default value for the attribute is defined in a DTD, a new attribute immediately appears with the default value.

Syntax.

elementNode.removeAttribute(name)
Parameter 'name' is Required and it Specifies the attribute to removed



The link text will act like a normal Text.

Tags: How to convert the hyperlink to a normal text using JavaScript?
Updated on: November 2024