Forum Moderators: open
functionname('linkname'). 'return false' ensures that if JavaScript is enabled and the functionname() function is executed, then the normal link (as specified by the href attribute) will *not* be followed. However, if JS is disabled (the onclick event is not executed), then the link will still be followed (so the link still works if JS is off). If you were to remove 'return false' (same as having 'return true'), then the link will be followed, as well as the JS function being executed, which is not usually the desired effect... particulary if you are wanting to display the link in a popup window (a reason for calling a function() passing the value of the href attribute).
The brackets (...) are required as part of JS syntax. You must call a function like:
functionname()What comes between the brackets is what you are passing to that function. If you removed 'this.href' then your function would not receive any input and would probably not work!
Hope that helps.