[jQuery] how does jQuery's timeout used?

[jQuery] how does jQuery's timeout used?


i would like to handle the timeout situation with jQuery but could not
find a lot of information on that. i know you can specify
timeout:5000
as the ajax parameter. but what happens when it times out? i tried it
and it does not do anything. what i want is a simple alert() to show
when it times out in 5 seconds. how can i accomplish that?
thanks.