I tried to do this:
location.reload = function() { return false }
But it seems to be denied as it still reloads the page.
EDIT
I do not want to do any harm for a user and lock it into the page. The case where I need it is - integration testing on an existing code base which has location.reload()
and location.href = '...'
all over the place.