30
rated 0 times
[
36]
[
6]
/ answers: 1 / hits: 70845
/ 11 Years ago, tue, july 16, 2013, 12:00:00
I wish to put some instructions with a link - onclick calling a script that display a simple alert box. If I did like this...
<label for=arquivo>Máximo de 1MB, observe os <a href= onclick=ajudaUpload();>tipos permitidos</a>.</label>
the page is reloaded even with a return false, and if I did like this...
<label for=arquivo>Máximo de 1MB, observe os <a href=# onclick=ajudaUpload();>tipos permitidos</a>.</label>
with the # symbol, the page is scrolled to the top and # is added to query string. Is there a third way to do it without reloading, scrolling and garbage?
More From » onclick