Click here to Skip to main content
12,997,060 members (77,650 online)
Rate this:
Please Sign up or sign in to vote.
hi i need help in javascript
i am usgin

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 :)
Posted 28-Feb-13 4:11am
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
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

add this:
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??
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

<a href="java<!-- no -->script:my_function();">....</a>

Edo :)
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()
Edo Tzumer 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?
Edo Tzumer 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???
aspnet_regiis -i 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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170622.1 | Last Updated 28 Feb 2013
Copyright © CodeProject, 1999-2017
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