Hi All,
I have a link with href="#".
The purpose of this link is to do an action on click.
Actual behavior: it sends a request to server and the page is refreshed..
This link is located inside HTML form, in a big complicated page.
I know that it can be solved by changing to href="javascript:void()", but href is generated automatically[/color red] by a 3rd party tool, and I cannot update it[/color red]
Please advice why it happens, and how I can solve it
I have a link with href="#".
The purpose of this link is to do an action on click.
Actual behavior: it sends a request to server and the page is refreshed..
This link is located inside HTML form, in a big complicated page.
I know that it can be solved by changing to href="javascript:void()", but href is generated automatically[/color red] by a 3rd party tool, and I cannot update it[/color red]
Code:
....
<a href="#" onclick="alert('123');">123</a>
....
Please advice why it happens, and how I can solve it