By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,963 Members | 1,815 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,963 IT Pros & Developers. It's quick & easy.

Disable of a link

P: 9
How can I make a link disable?
Nov 1 '07 #1
Share this Question
Share on Google+
14 Replies


10K+
P: 13,264
How can I make a link disable?
You are really not good at explaining your problems clearly are you?
Nov 1 '07 #2

P: 9
You are really not good at explaining your problems clearly are you?
Sorry for tht.actually I am very much fresher in this field.
Actually I am facing th problem as below.
I have a jsp page,having a hyperlink.Now as we proceed through the hyperlink ander after required action getting back to the parent page,I want that the particular hyperlink in my parent page should be disabled.
Nov 1 '07 #3

100+
P: 283
How can I make a link disable?
you may need a javascript in this case.u'll find it in google.
Nov 1 '07 #4

10K+
P: 13,264
Sorry for tht.actually I am very much fresher in this field.
Actually I am facing th problem as below.
I have a jsp page,having a hyperlink.Now as we proceed through the hyperlink ander after required action getting back to the parent page,I want that the particular hyperlink in my parent page should be disabled.
By disabled do you mean hidden or you want the text to be there but have it no longer as a link?
One approach may involve giving the the link tag an id.

P.S I'm moving this to the Javascript forum.
Nov 1 '07 #5

P: 9
By disabled do you mean hidden or you want the text to be there but have it no longer as a link?
One approach may involve giving the the link tag an id.

P.S I'm moving this to the Javascript forum.
Yes you are right I want the hyperlink should be hidden.

Thanks in advance.
Nov 1 '07 #6

P: 9
Yes you are right I want the hyperlink should be hidden.

Thanks in advance.
I have a hyper link in a jsp page.after click the hyper link i will porform some operation.After performing the tasks i will submit the parent page by checking that the task have been performed or not without reloading/refreshing the parent page.
Nov 1 '07 #7

acoder
Expert Mod 15k+
P: 16,027
I have a hyper link in a jsp page.after click the hyper link i will porform some operation.After performing the tasks i will submit the parent page by checking that the task have been performed or not without reloading/refreshing the parent page.
Set the style.visibility property to "hidden", e.g.
Expand|Select|Wrap|Line Numbers
  1. document.getElementById("linkid").style.visibility = 'hidden';
Nov 1 '07 #8

P: 9
Set the style.visibility property to "hidden", e.g.
Expand|Select|Wrap|Line Numbers
  1. document.getElementById("linkid").style.visibility = 'hidden';


Thank you very much.
Nov 1 '07 #9

acoder
Expert Mod 15k+
P: 16,027
Thank you very much.
You're most welcome. Is your problem solved?
Nov 1 '07 #10

P: 9
You're most welcome. Is your problem solved?

Yes, my problem is solved.Sorry for the late reply.
Nov 12 '07 #11

10K+
P: 13,264
Yes, my problem is solved.Sorry for the late reply.
Don't worry about it. Most people never bother to reply anyway ...
Nov 12 '07 #12

acoder
Expert Mod 15k+
P: 16,027
Yes, my problem is solved.Sorry for the late reply.
As r035198x pointed out, no worries. Better late than never, I say.

Glad it helped. Post again to the forum should you have any questions that need answering.
Nov 12 '07 #13

P: 1
And what is solution if we need to keep the text i.e; no more be visible as hyperlink but just as a simple text
Nov 13 '08 #14

acoder
Expert Mod 15k+
P: 16,027
Seema, welcome to Bytes!

When you want to disable the link by displaying the text only, then get the text and replace the link with that text. To get the text, either use a DOM method, or simply the innerHTML property.
Nov 13 '08 #15

Post your reply

Sign in to post your reply or Sign up for a free account.