Answer the question
In order to leave comments, you need to log in
Location.href and wheel click?
We have:
...
<tr onclick="location.href='/';">
<td><a href="/">text1</a></td>
<td><a href="/">text2</a></td>
<td>text3</td>
</tr>
...
Answer the question
In order to leave comments, you need to log in
The "problem" of chromium. On a click with the middle button, it opens a new window.
If you want the main window to not go anywhere, add return false; in onclick, but the meaning of href is somewhat lost.
There is nothing surprising. You forcefully change the address
location.href='/'
. This is a piece of javascript, and you redefine href. Chrome just adequately fulfills everything, but ff is not.
Write a link like a human
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question