File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes to remove hyperlink after the page is accessed. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "to remove hyperlink after the page is accessed." Watch "to remove hyperlink after the page is accessed." New topic

to remove hyperlink after the page is accessed.

S.R.K.Vivek Raju
Ranch Hand

Joined: Sep 23, 2004
Posts: 58
Hi all,

I am not very much familiar with js and html.
I want to know how to remove the hyperlink after the page is accessed.

Let me make it more clear.

I have a menubar on the leftside of my page which is actually a sort of frame which repeats on all the pages. Now when i click on a hyperlink on the menubar the page shows up but the link is still underlined, i want the link to become inactive on that page. But it should be active on all the other pages.

I have tried out the .css thing but my page refreshes everytime i click on the link and the default values show up.

I have tried putting this code in the <head> tag.
<style type="text/css">
color: rgb(0,102,153); text-decoration: underline;

color: rgb(0,102,0); text-decoration: None;
color: rgb(0,255,0);text-decoration:underline;


But it really does't work the way i want it.
Could any one give me a suggestion or an example on how to do this.

Thanks in advance,
With Regards,
S.R.K.Vivek Raju.
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376
I think one of the top reults will help you here.

I agree. Here's the link:
subject: to remove hyperlink after the page is accessed.
Similar Threads
change CSS rules dynamic with JavaScript
css not working in firefox
converting html to pdf
problem with hyperlink
Is there something better then event.pageX/Y?