My javascript event registration with onClick
I just cannot get my onClick to open a new window.
I have generated some links on the page and applied an onClick event and want to open a new window with the link.
At the momemnt my javascript below doesnt open anything.
Here is what I have below:
buttonURL.onClick = function(){
jQuery.ajax('http://d1.openx.org/ck.php?oaparams=2__bannerid=139103__zoneid=64335__cb=RANDOM_NUMBER');
window.open(ads[j].Offer.Url);
}
If your wandering what the jQuery.ajax() function is for, I have created a OpenX click tracking URL which I want to use to track the click.
Any help I would appreciate it.
teammatt3 posted this at 18:01 — 22nd August 2009.
He has: 2,102 posts
Joined: Sep 2003
Can we get the link to the page you're working on? It's kind of hard to debug if we just get 4 lines of code
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.