Skip to content

Instantly share code, notes, and snippets.

@TLMcode
Last active December 20, 2015 07:29
Show Gist options
  • Save TLMcode/6093324 to your computer and use it in GitHub Desktop.
Save TLMcode/6093324 to your computer and use it in GitHub Desktop.
Wait() for IE client objects.Watch this Gist for updates.
Wait( obj, len=300 )
{
While (obj.ReadyState=4)
continue
While (StrLen(rs)<len)
rs.=((_:=obj.ReadyState)=4?_:)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment