|
Good question. I thought it was simple but after testing and searching it seems it is not possible to do this in a simple way.
First I thought - why not just fire the onclick instead of click?
But onclick is not a function either until it has been written explicitly in the html.
So what about setting onclick="return true"?
This would normally activate the hyperlink (whereas onclick="return false" would disable it...)
But it still doesn't do anything in Firefox.
Running out of ideas, the 'best' thing could be to add this to the A element:
<a href="..." onclick="location.href=this.href">
and then firing the onclick event instead of click().
Problems with this method:
1. It wont work If the href starts with "javascript:..." or "mailto:..." etc.
2. It wont pay respect to any TARGET attribute
These things could of course be tackled by a clever script, which I am sure someone has already written, but actually I would prefer many other things before such a script - for instance to add a submit button or similar, which would work as expected when invoking the click event.
|
|
Expert:
|
jgivoni
|
|
Date:
|
Aug 07, 2007
|
|
Time:
|
13:53
|
|
|
|
Votes: Good (0) | Bad (0) Login to rate this answer
|
|
|
dustPuppy, did you get your question solved?
If you did then please close this question and distribute the points. If you found the solution on your own, we would be very happy if you could explain it here for the sake other users having the same problem.
If you didn't get a solution to your problem, please leave a comment here to let the experts know that you're still looking for an answer.
Thanks,
The Quomon Admin Team
|
|
Expert:
|
admin
|
|
Date:
|
Aug 22, 2007
|
|
Time:
|
13:25
|
|
|
|
Votes: Good (0) | Bad (0) Login to rate this answer
|
|
|
thanks, jgivoni for your response and sorry for not getting back quicker.
your proposed solution sounds like a good way to do it.
thanks for the help
|
|
Expert:
|
dustPuppy
|
|
Date:
|
Aug 27, 2007
|
|
Time:
|
05:38
|
|
|
|
Votes: Good (0) | Bad (0) Login to rate this answer
|
|
|
|
|
|
|
This question has been answered, and points have been rewarded to the following experts:
You're welcome however to comment or give additional information or if you wish, you have the ability to write an Answer Summary for this question by clicking on the "Answer Summaries" Tab.
|
|