Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET Javascript
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
<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 Smile | :)
Posted 28-Feb-13 4:11am
nika20081.1K
Comments
nika2008 at 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
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Hi,
add this:
onClick="callMe();"
  Permalink  
Comments
nika2008 at 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??
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Example:
<a href="java<!-- no -->script:my_function();">....</a>
 
Cheers,
Edo Smile | :)
  Permalink  
v2
Comments
nika2008 at 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()
Edo Tzumer at 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 at 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?
Edo Tzumer at 28-Feb-13 10:53am
   
Sorry mate, I don't understand what you need, and what is the problem
nika2008 at 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???
 
aspnet_regiis -i at 28-Feb-13 11:34am
   
Vain attempt to fool google and the users to click on adsense whthout knowing them .. Google is smarter.It will ban you...

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 404
1 Nirav Prabtani 307
2 Abhinav S 210
3 PIEBALDconsult 160
4 Dave Kreskowiak 155
0 OriginalGriff 7,580
1 Sergey Alexandrovich Kryukov 6,806
2 Maciej Los 3,919
3 Peter Leow 3,693
4 CHill60 2,742


Advertise | Privacy | Mobile
Web03 | 2.8.140721.1 | Last Updated 28 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100