Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disable anchor tag in firefox?

Status
Not open for further replies.

rjohn2001

Programmer
Nov 21, 2005
24
GB
Hi all,
I don't know how simple this could be..but this is taking on me for quite a some time.It just works fine in IE but not in firefox..Could some please guide me what's wrong in here..
Code:
<a class="Item" href="" Onclick="javascript:return false;" style="width:100" disabled>Contents</a>
 
This seems like a client-side issue rather than an ASP question.

It might be better to ask the JavaScript experts: forum216
 
i am using this as a Menu Item and want to disable this feature for some users.


 
Assuming the page is created dynamically via ASP, why not just not send the link for users that lack the required privilage level?

Something like this:
Code:
<% If UserType = "Guest" Then %>
  <font color=grey>Contents</font>
<% Else %>
  <a href = "/contents.asp">Contents</a>
<% End If%>

... but here I go trying to put a server-side solution to what is funadentally a client-side issue...

When your only tool is a hammer, every problem looks like a nail.
 

I would recommend considering Sheco's suggestion - it might make a little more sense than sending surplus content to the user who doesn't have any need for it..



A smile is worth a thousand kind words. So smile, it's easy! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top