document.readyState

				function setState()
				{
					state = document.readyState;
					switch (state)
					{
						case "uninitialized":
							document.title = "还没有开始加载文档";
							break;
						case "loading":
							document.title = "文档加载中";
							break;
						case "interactive":
							document.title = "加载的文档已经可以和用户进行交互了";
							break;
						case "complete":
							document.title = "文档加载完毕";
							break;
					}
				}

 

你可能感兴趣的:(readyState)