Willi
02-12-2007, 03:00 PM
Hi there,
just one short question for a JS newbie:
I want to manipulate a normal href link with the onClick event.
<a href="http://anywhere.com" onClick="action()">Link</a>
The browser request should look like:
'http://mypage.com/check.php?url=http://anywhere.com'
In short: I want to attach a string (http://mypage.com/check.php?url=) to the url. But it's manadatory that the href tag (href="http://anywhere.com") stays! Is this even possible? I don't think so!?
Any help or tips are appreciated! THANK YOU! :)
just one short question for a JS newbie:
I want to manipulate a normal href link with the onClick event.
<a href="http://anywhere.com" onClick="action()">Link</a>
The browser request should look like:
'http://mypage.com/check.php?url=http://anywhere.com'
In short: I want to attach a string (http://mypage.com/check.php?url=) to the url. But it's manadatory that the href tag (href="http://anywhere.com") stays! Is this even possible? I don't think so!?
Any help or tips are appreciated! THANK YOU! :)