Is there a way to replace a string in HTML with Javscript without .replace?

mickey hwang

New member
I'm trying to replace a set of HTML code (e.g <a href="alink">Click here</a> <a href="anotherlink"><img src="example.jpg"></a> ) to nothing or "". Is this possible with javascript without using the .replace function? It doesn't necessarily have to be javascript, but anything that would allow it to change without the server having to have the particular scripting language installed on the server (php, etc.).

Another example:
Say I have the code '<h3>Welcome to my world</h3><br><img src="logo.jpg">', I would like to get rid of it completely and replace it with nothing with a script or code that doesn't use .replace or iframes.

Thanks in advance!
 
Back
Top