window.location.href = window.location.href
- window.location.href = window.location.href;
is a standard web programming technique to reload the page WITHOUT re-POSTing the form.
But JSLint says "Weird assignment", which is entirely true.
If the page programmer does not want to re-POST old form data then she avoids window.location.reload() because IE and FF both present the user with the (often confusing) dialog about resending the form (or retrying) if you use instead window.location.reload().
What do you think about allowing this specific assignment when the JSLint "browser" option is set?