Web page switching method and web page switching device

The invention belongs to the technical field of computers and discloses a web page switching method and a web page switching device. The web page switching method includes: receiving a click from a user on a secondary total navigation position, wherein a secondary temporary navigation bar is further expanded on a primary web page and comprises multiple secondary navigation positions; receiving a click from the user on a chosen secondary navigation position and switching the primary web page to a secondary web page corresponding to the clicked secondary navigation position, wherein a navigation bar of the secondary web page at least comprises multiple primary navigation positions and the secondary total navigation position; further expanding the secondary temporary navigation bar on the secondary web page when the secondary total navigation position on the secondary web page is clicked; and switching the secondary web page to the primary web page corresponding to the primary navigation positions when the primary navigation positions on the secondary web page are clicked. According to the web page switching method, through the clicks on the primary navigation positions on the navigation bar of the secondary web page, direct switching from the secondary web page to the primary web page is realized, and therefore the web page switching speed is increased, and the user experience is enhanced.