i have always seen all the websites using 404.shtml or other html or php pages to display 404 error. I want to know is there anyway that it can be done with javascript without having any 404.shtml page? if there is please let me know the way. thanks.