Tuesday, September 21, 2010

Use of # or javascript:void()

i have tried both. the # makes the page refresh and i didnt want that. i used the javascript:void and it did what i want it to do but then i read somewhere that users wont be able to right click, not that the link would have allowed that. so, this is what i do, i use any link name, e.g. but then i add "onclick = 'return false;'" so it becomes

you can still use the return false even if you call a function. call the function then return false;

No comments: