Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies




9:27 am on Aug 28, 2003 (gmt 0)

10+ Year Member


When i have several links and i click on one of the hyprelink, it opens in a new page and i want that link to change it colour and should not a a link text anymore. and the rest o the link menu is same.

how do i do


9:33 am on Aug 28, 2003 (gmt 0)

10+ Year Member

here i mean, the page i am in, that menu link shld be in clicked state.

any help


10:13 am on Aug 28, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

Hello jbhavin:

If I understand you something like this should do the trick...

<script type="text/javascript">
function toText(link) {
var s = document.createElement("span");
s.innerHTML = link.innerHTML;
s.style.color = "red";
link.parentNode.replaceChild(s, link);

<a href="blah.htm" onclick="toText(this); return false;">Blah</a>



10:57 am on Aug 28, 2003 (gmt 0)

10+ Year Member

hey thankx Jordan but see the problem has to be bit modified

say i have link

About us (ALL ARE H LINKS)

now i click About Us, it takes me to new page

where linkare same
ABout us
now here, "About us" should not be a hyper and shld have diff colour


Featured Threads

Hot Threads This Week

Hot Threads This Month