I often land on various forums on my own computer, I have made a lot of scripts that automatically log in, lazy, lazy to remember passwords, sometimes I have a problem, I have some websites to check the source, not their website. Can not go up, my earliest is to be a settimer, first locate the login page, wait a while, then use our script to log in to the forum. But very bad, because the time is long, always waiting, short It may not be loaded with the page, sometimes the network speed is slow, and the length is not the length. Later, I saw the ReadyState property, which solved this problem. It is actually very simple. It is to set an instime load login page, set a setInterval to check iframe. ReadyState, if it is "Complete" to go to the next page, it is really simple