zac9393
Technical User
- Apr 14, 2008
- 2
Hello.
I have on first page, one div element, which, when user clicks, collect coordinates and send them on second page. In that div i have javascript function for collecting coordinates, and javascript function which is making querystring, and send me to another page.
here is function for redirecting:
function Go(x, y) {
var a = document.getElementById("Text3");
var b = document.getElementById("Text4");
c = a.value;
d = b.value;
window.location = "SecondPage.aspx?X = " + c + " &y = " + d;
}
On my first page, on div on which I collect coordinates, i placed some image, and when i click on image, i want to redirect to some another site.
here is html of that image:
<a href="somesite" target="_blank"><img id="img2" src="image.jpg" alt="" /></a>
Problem is that when i click a image, Go function in div element send me to another page, and not to some other site.
I think i must put some code in go function, that says that I'm not clicking a div, than i clicking a image..
If someone can help me in this...
I have on first page, one div element, which, when user clicks, collect coordinates and send them on second page. In that div i have javascript function for collecting coordinates, and javascript function which is making querystring, and send me to another page.
here is function for redirecting:
function Go(x, y) {
var a = document.getElementById("Text3");
var b = document.getElementById("Text4");
c = a.value;
d = b.value;
window.location = "SecondPage.aspx?X = " + c + " &y = " + d;
}
On my first page, on div on which I collect coordinates, i placed some image, and when i click on image, i want to redirect to some another site.
here is html of that image:
<a href="somesite" target="_blank"><img id="img2" src="image.jpg" alt="" /></a>
Problem is that when i click a image, Go function in div element send me to another page, and not to some other site.
I think i must put some code in go function, that says that I'm not clicking a div, than i clicking a image..
If someone can help me in this...