I’ve got the problem.
I need to open the js file while clicking on text which.
I’ve got:
<script src="http://www.domain.com/file.js" type="text/javascript"></script>
And when I click the image which appears the js script is executed and im rediredted to http://www.domain.com/.
so
clicked on js -> js script executed -> redirected to url(its scripted in js file to make it)
Now I want to make it want to do it without image only with text
so
clicked on text -> js script executed from http://www.domain.com/file.js -> redirected.
I tried to do it like:
<a href="http://www.domain.com/file.js">text</a>
but it not working propertly:
clicked on text -> redirected to http://www.domain.com/file.js adress -> clicked to execute js -> redirected
Please help me.
use jquery
link for jquery http://jquery.com/