Patent ID: 8713629

Claim:
A wireless network accessing method, adaptable to a portable electronic device, the wireless network accessing method comprising: connecting to a wireless access point (WAP); receiving an authentication webpage from the WAP; analyzing a layout of the authentication webpage by using a database to find out an account field and a password field of the authentication webpage, comprising: comparing a plurality of rules in the database according to the layout of the authentication webpage; when the layout of the authentication webpage completely satisfies the rules, finding out the account field and the password field according to the rules; when the layout of the authentication webpage partially satisfies the rules, calculating a fractional ratio of the rules to estimate positions of the account field and the password field; and when the layout of the authentication webpage and the rules are not comparable, recording a comparison log; receiving an account and a password input by a user; and sending the account field filled with the account and the password field filled with the password to the WAP.