Click here to Skip to main content
15,895,812 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
hi i need help in javascript
i am usgin asp.net

i have link which is passiv that link don`t make redirection.

this is the link
HTML
<a class="link1" href="java<!-- no -->script:void(0)"> </a>


and i cant give him javascript function like onclick="dosomethink()" ,
there are alot reason why i cant give.

know what i wanna do is how can i know wanna the link is clicked
the link don`t change the url
he just calla javascript from google service.

my english is bad sorry
thnx for helping me :)
Posted
Comments
nika2008 28-Feb-13 10:14am    
java_script:void(0) on link top
i add java_script becose i dont know why i cant type javascript

Hi,
add this:
onClick="callMe();"
 
Share this answer
 
Comments
nika2008 28-Feb-13 10:36am    
i cant change this tag becose is important from google service if i change somethink on it then dont work this??
Example:
HTML
<a href="java<!-- no -->script:my_function();">....</a>


Cheers,
Edo :)
 
Share this answer
 
v2
Comments
nika2008 28-Feb-13 10:24am    
i add wirrite //javascript and codeprocet change it i dont know why he change it sry it must be //javascript not java<!-- no -->script:my_function()
Joezer BH 28-Feb-13 10:30am    
It's a safety measure automatically inserted.
What is the problem with your javascript? it should work, just ignore the <!-- no --> tag and put something in the function
nika2008 28-Feb-13 10:32am    
this javascript is not my he is important from google service
i wanna know when is clicked this link if i change some think on this tag then dont work this?
Joezer BH 28-Feb-13 10:53am    
Sorry mate, I don't understand what you need, and what is the problem
nika2008 28-Feb-13 11:01am    
the javascript:void(0) this funcion is importen from google service
and i cant change this tag
if i change it somethink then this funciton dont workt javascript:void(0)
i just need to know wanna is clicked the link without changed it???

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900