[Solved] Changing text by calling javascript


What you’re trying to accomplish is probably something like this:

HTML

<div id="q1">
<a onClick="javascript:clickFunction()">Quotation is by</a>
</div>

JavaScript

clickFunction = function() {
    document.getElementById("q1").innerHTML = "<a href="http://www.quotationspage.com/quote/1463.html">Antole France</a>";
}

JSFiddle

1

solved Changing text by calling javascript