CN103559227A - Webpage displaying method and browser - Google Patents

Webpage displaying method and browser Download PDF

Info

Publication number
CN103559227A
CN103559227A CN201310498735.7A CN201310498735A CN103559227A CN 103559227 A CN103559227 A CN 103559227A CN 201310498735 A CN201310498735 A CN 201310498735A CN 103559227 A CN103559227 A CN 103559227A
Authority
CN
China
Prior art keywords
webpage
position information
url
page
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310498735.7A
Other languages
Chinese (zh)
Other versions
CN103559227B (en
Inventor
张毅
陈擎月
任寰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201310498735.7A priority Critical patent/CN103559227B/en
Publication of CN103559227A publication Critical patent/CN103559227A/en
Application granted granted Critical
Publication of CN103559227B publication Critical patent/CN103559227B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]

Landscapes

  • Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)

Abstract

The invention discloses a webpage displaying method and a browser. The webpage displaying method comprises presetting a webpage page location information table on a browser side locally; obtaining a URL (Uniform Resource Locator) of a current access request webpage; searching the URL in the webpage page location information table and reading page location information which is corresponding to the URL; opening the webpage which is corresponding to the URL and loading and displaying a loading display portion of the webpage according to the obtained page location information. According to the webpage displaying method and the browser, a user can obtain the URL of the webpage, search the URL in the webpage page location information table and read the page location information which is corresponding to the URL when browsing the webpage once again, the webpage is loaded and displayed according to the obtained page location information when the URL page is opened, the webpage display location is recovered to a last browsing position of the user, the user is convenient to browse the webpage once again, and user experience is improved.

Description

Method for displaying webpage and browser
Technical Field
The invention relates to the field of internet, in particular to a method for displaying a webpage and a browser.
Background
At present, the continuous development of browsers brings rich network resources to users, and users can browse web pages through the browsers so as to obtain the content of the web pages.
Most of the existing web pages contain a large amount of information, and the large amount of information causes that the web pages are too long and cannot be completely displayed in the same screen. When browsing, the user can select to pull down the page through a mouse wheel, a progress bar or mouse gestures and the like so as to browse subsequent contents of the page.
Most network users browse a large number of web pages on a daily basis, according to their preferences, but may often be interrupted in browsing. The user can select to collect the web pages into the favorites at this time, and when the time is up, the website is found from the favorites and is opened again for browsing.
However, since the information amount of many current webpages is large, the pages are too long, and when a user opens half of the webpages seen before, the user usually forgets what positions of the webpages have been seen, and only needs to look for the positions again and pull down the progress bar to the positions for browsing.
Therefore, when the webpage is opened by using the existing webpage opening mode of the browser, if the user has viewed the website, the user needs to find the viewed position by himself, the operation is complex, the user time is wasted, and the user experience is reduced.
Disclosure of Invention
In view of the above, the present invention has been made to provide a method and a corresponding browser adapted to display a web page that overcomes or at least partially solves the above mentioned problems.
According to an aspect of the present invention, there is provided a method of displaying a web page, including:
locally presetting a webpage page position information table on a browser side, wherein position information of a loading display part in a webpage is marked;
acquiring a URL (Uniform Resource Locator) of a webpage which is requested to be accessed currently;
searching a URL in a webpage page position information table, and reading page position information corresponding to the URL;
and opening a webpage corresponding to the URL, and loading and displaying a loading and displaying part of the webpage according to the acquired page position information.
Optionally, the preset mode of the web page position information table includes:
receiving a recording instruction triggered by a user in a currently browsed webpage;
acquiring page position information of the webpage when a recording instruction is triggered;
and correspondingly storing the URL of the webpage and the acquired webpage position information into a pre-established webpage position information table.
Optionally, the method further comprises:
when a recording instruction for triggering the recorded webpage again is received, acquiring page position information of the webpage when the recording instruction is triggered;
and updating the original page position information corresponding to the URL of the webpage in the webpage page position information table into the currently acquired page position information.
Optionally, the triggering manner of the recording instruction includes:
receiving a recording instruction triggered by a user clicking a recording mark in a webpage; or,
receiving a recording instruction triggered by a user clicking a recording shortcut key; or,
receiving a collection instruction of a user to a webpage to trigger a recording instruction; or,
receiving an indication of closing a webpage by a user, and triggering and acquiring the position of the currently displayed webpage; or,
and receiving a webpage element in the current webpage selected by the user, and triggering the webpage element to be used as the center of the display area range of the browser.
Optionally, the recording indicator is located in a toolbar of the web page or in the page content of the web page.
Optionally, the method distinguishes the recording marks before and after the recording command is triggered in any one of the following manners: magnification, color change, shape change.
Optionally, searching a URL in the web page location information table, and reading the page location information corresponding to the URL, including:
searching a webpage page position information table and judging whether the webpage page position information table contains a URL or not;
if yes, reading page position information corresponding to the URL;
if not, directly opening the webpage corresponding to the URL, and displaying the webpage in a default mode.
Optionally, the web page location information table includes: the number of the user recording marks and/or the recording time and/or the web page address and/or the current web page position information.
Optionally, the storage form of the web page location information table includes: stored separately from the local database file or stored in the database file.
Optionally, the page position information is marked in the form of scroll bar position coordinates of the web page.
According to an aspect of the present invention, there is also provided a browser, including:
the information table presetting module is configured to locally preset a webpage page position information table on a browser side, wherein position information of a loading display part in a webpage is marked;
the URL acquisition module is configured to acquire the URL of the webpage which is requested to be accessed currently;
the position information reading module is configured to search a URL in a webpage page position information table and read page position information corresponding to the URL;
and the webpage loading module is configured to open a webpage corresponding to the URL and load and display a loading display part of the webpage according to the acquired page position information.
Optionally, the information table presetting module includes:
the instruction receiving unit is configured to receive a recording instruction triggered by a user in a currently browsed webpage;
the position information acquisition unit is configured to acquire page position information of the webpage when the recording instruction is triggered;
and the storage unit is configured to correspondingly store the URL of the webpage and the acquired page position information into a pre-established webpage page position information table.
Optionally, the instruction receiving unit is further configured to receive a recording instruction for triggering recording of the recorded web page again;
correspondingly, the position information acquiring unit is also configured to acquire the page position information of the webpage when the recording instruction is triggered;
the storage unit is also configured to update the original page position information corresponding to the URL of the web page in the web page position information table to the currently acquired page position information.
Optionally, the triggering manner of the recording instruction received by the instruction receiving unit includes:
receiving a recording instruction triggered by a user clicking a recording mark in a webpage; or,
receiving a recording instruction triggered by a user clicking a recording shortcut key; or,
receiving a collection instruction of a user to a webpage to trigger a recording instruction; or,
receiving an indication of closing a webpage by a user, and triggering and acquiring the position of the currently displayed webpage; or,
and receiving a webpage element in the current webpage selected by the user, and triggering the webpage element to be used as the center of the display area range of the browser.
Optionally, the recording indicator is located in a toolbar of the web page or in the page content of the web page.
Optionally, the browser distinguishes the recording mark before and after the recording instruction is triggered in any one of the following manners: magnification, color change, shape change.
Optionally, the position information reading module includes:
the searching and judging unit is configured to search the webpage page position information table and judge whether the webpage page position information table contains the URL or not;
the reading unit is configured to read page position information corresponding to a URL when the URL is contained in the webpage page position information table;
and the webpage opening unit is configured to directly open the webpage corresponding to the URL and display the webpage in a default mode when the webpage page position information table does not contain the URL.
Optionally, the web page location information table includes: the number of the user recording marks and/or the recording time and/or the web page address and/or the current web page position information.
Optionally, the storage form of the web page location information table includes: stored separately from the local database file or stored in the database file.
Optionally, the page position information is marked in the form of scroll bar position coordinates of the web page.
The invention provides a method for displaying a webpage and a browser, wherein the page position information of the webpage browsed by a user is stored by locally presetting a webpage page position information table on the browser side, so that when the user browses the webpage again, the URL of the webpage is obtained, the URL is searched in the webpage page position information table, the page position information corresponding to the URL is read, and when the URL page is opened, the webpage is loaded and displayed according to the obtained page position information, the display position of the webpage can be restored to the last position of the user when the user browses the webpage last time, the flow of the user to the webpage again is facilitated, the user experience can be improved, and the method is more humanized.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
The above and other objects, advantages and features of the present invention will become more apparent to those skilled in the art from the following detailed description of specific embodiments thereof, taken in conjunction with the accompanying drawings.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow diagram of a method of displaying a web page in accordance with one embodiment of the present invention;
FIG. 2 is a flowchart of a particular method of displaying a web page according to one embodiment of the invention;
FIG. 3 is a schematic diagram of adding a recording mark to a browser for recording a position of a web page according to an embodiment of the present invention;
fig. 4 is a block diagram of an overall structure of a browser according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Example one
The embodiment of the invention provides a method for displaying a webpage, wherein the method can be realized by improving a browser.
Fig. 1 is a flowchart of a method for displaying a web page according to an embodiment of the present invention, which includes steps S102 to S108.
S102, a webpage page position information table is preset locally on the browser side, wherein position information of a loading display part in the webpage is marked.
S104, acquiring the URL of the webpage which is requested to be accessed currently.
S106, searching the URL in the webpage page position information table, and reading the page position information corresponding to the URL.
And S108, opening the webpage corresponding to the URL, and loading and displaying the loading and displaying part of the webpage according to the acquired page position information.
The embodiment of the invention provides a method for displaying a webpage, which stores the page position information of the webpage browsed by a user by locally presetting a webpage position information table on a browser side, so that when the user browses the webpage again, the URL of the webpage is obtained, the URL is searched in the webpage position information table, the page position information corresponding to the URL is read, and when the page of the URL is opened, the webpage is loaded and displayed according to the obtained page position information, so that the display position of the webpage can be restored to the last position of the webpage browsed by the user last time, the flow of the user to the webpage again is facilitated, the user experience can be improved, and the method is more humanized.
Example two
As another preferred embodiment of the present invention, the present embodiment provides a method of displaying a web page. The method provided by the embodiment is an improvement of the method provided by the embodiment one, and can be realized by improving a browser.
The method provided by the second embodiment can provide the user with a webpage recording function, and can save the webpage opened by the user and the current webpage position. When the user opens the recorded webpage, the webpage is directly displayed to the webpage position which the user browses last time. The second embodiment specifically takes an example that a user records a webpage and opens the recorded webpage after closing the webpage.
Fig. 2 is a flowchart of a specific method for displaying a web page according to an embodiment of the present invention, where the method includes steps S201 to S208, and the method provided in this embodiment is described in detail below.
First, step S201 is executed to receive a recording instruction triggered by a user in a currently browsed webpage.
It should be noted that the recording instruction is used to keep the URL of the webpage currently browsed by the user and the current page position to the local. Optionally, in this embodiment, the triggering manner of the recording instruction includes, but is not limited to, the following:
first, a recording instruction triggered by a user clicking a recording mark in a webpage is received.
The recording mark in this embodiment may be located in a toolbar of a web page, or may be located in the page content of the web page. In order to more clearly show the first recording manner provided in this embodiment, fig. 3 is further provided in this embodiment, which shows a schematic diagram of adding a recording mark to a browser to record a webpage position. In which the button in the upper left corner of the web page shown in figure 3 (the button under the text "browser") represents the position where the current page is recorded.
In addition, in this embodiment, in order to facilitate the user to know whether the current page has been recorded, optionally, the recording status for each web page may be marked with a change in color of the recording flag. For example: if the position of the scroll bar of the page is not recorded, the recording mark is displayed as a black frame transparent ground color; clicking the mark records the position of the scroll bar of the page, the current position of the scroll bar of the page is stored locally along with the URL, and the recorded mark turns to yellow ground color to indicate that the link is recorded.
Similarly, in order to achieve the same effect, the recording status of each web page may be marked by amplifying the recording mark, or the recording status of each web page may be marked by changing the shape of the recording mark, and the embodiment is not specifically described.
And secondly, receiving a recording instruction triggered by a user clicking a recording shortcut key.
The method is similar to the first method, and in this embodiment, the recording mark in the first method may be replaced by a recording shortcut key to record the web page. Optionally, the recording shortcut key may be set by a user or may be set by default by the system.
Thirdly, receiving a collection instruction of the user to the webpage to trigger a recording instruction.
In this embodiment, the web page may also be collected by clicking a collection button, and at this time, the page position of the page is saved.
Fourthly, receiving an indication of closing the webpage by the user, and triggering and acquiring the webpage position of the currently displayed webpage.
It should be noted that, in this manner, the recording operation of the web page is configured to be automatically recorded, and when the user closes the web page, the URL of the web page and the current page position may be triggered to be saved.
Alternatively, in each of the first to fourth manners, the coordinates of the scrollposition (the position of the scroll bar) may be obtained as the page position of the web page by acquiring the display area of the current web page and calculating the position of the center element of the display area.
A fifth method is described below, which receives a web page element in a current web page selected by a user, and triggers the web page element to serve as a center of a display area range of a browser.
In this manner, the user can manually select a web page element (an element for obtaining the center display of the web page from the current DOM (Document Object Model) tree) in the previous web page, and then use the browser display area range (ClientWidth 600pixel) centered on the element as the calculation basis of the current web page position.
Wherein the clientwidth and the clientheight (i.e. the size of the browser window) can be obtained as follows:
in the browser without declaring DOCTYPE, the size of the browser window can be obtained by document.
In the browser of which DOCTYPE is declared, the size of the browser window can be acquired by means of document. For example: IE. Safari can be obtained by the above method.
Or, the user may manually set the height of the central display area, and first set the scrollposition of the currently selected element through setscollposition, where the user needs to acquire and store current scrollposition information during configuration, and then record range data of the display area.
After receiving the recording instruction, the process proceeds to step S202. In step S202, page position information of the web page when the recording instruction is triggered is acquired.
The page position information may be coordinates of a scroll bar position scrollposition calculated according to a display area of the current page, or may be coordinates of a scroll bar position scrollposition calculated according to a center element of the current page.
Next, step S203 is executed, that is, the URL of the web page and the acquired page position information are stored in a pre-established web page position information table in a corresponding manner.
The webpage page position information table is marked with position information of a loading display part in a webpage, and the page position information is marked in the form of position coordinates of a scroll bar of the webpage.
It should be noted that a database file session is locally pre-established on the browser side, and the database file is used for storing page position information of a webpage that is closed by a user last time or closed by an unexpected error. And when the browser is restarted or the user cancels the last closing operation, the browser reads the closed webpage and the page position information of the webpage from the session database file and performs recovery operation.
Specifically, the webpage page position information table provided by the embodiment of the present invention may be stored in the middle of the session database, or a database file may be separately established locally for storing the webpage page position information table.
Optionally, the web page location information table further includes at least one of the following information: the number identification of the user recording, the recording time and/or the web address of the webpage and the position information of the current webpage. Generally, in order to make the stored web page location information table more comprehensive, the web page location information table generally marks the number identification of the user recording, the recording time and/or the web address and the current web page location information as parameters when storing.
In this embodiment, as a preferred implementation, the webpage location information table may be stored by using a sql ite database, and the basic fields of the webpage location information table may include:
id: the recorded id and a self-increment field represent the number of the web pages recorded by the user;
createtime: if the recording time is updated, the value is changed correspondingly;
url: an address column url, which is used for retrieving page position information, although there is a table with id;
position: the page position of the webpage recorded by the user can be the coordinates of a scroll bar, for example;
common: other comment sections.
It should be noted that the web page location information table may be stored independently, or may be placed in the database file history. The independent storage has better performance and function isolation for the system, the independent storage is placed in the same database, the relevance of the data is stronger, and the independent storage can be selected according to the comprehensive consideration of the requirements during the specific implementation.
In step S203, recording of the web page browsed by the user is completed, that is, the URL of the web page browsed by the user and the page position information corresponding to the URL are stored. In the subsequent step S204, the user may browse the web page again and locate the display position.
When the user browses the web page, step S204 is triggered to be executed, that is, the URL of the current page requested to be accessed is obtained.
Thereafter, the URL is looked up in the netpage location information table by step S205, and it is determined whether the URL exists in the netpage location information table. If not, step S206 is performed, and if so, step S207 is performed.
It should be noted that, in the embodiment of the present invention, the browser needs to detect all open URLs of the user, for example, the web page location information table in step S203, and step S205 may search whether the URL exists in the table according to the URL of the web page.
S206, directly opening the webpage corresponding to the URL, and displaying the webpage in a default mode.
In step S206, since the URL or the page location information corresponding to the URL is not found in the page location information table of the web page, it indicates that the user has not visited the web page, and the web page is directly opened without repositioning the position of the scroll bar, but the web page is displayed at the default position.
In this embodiment, if the URL is found in the webpage location information table, it indicates that the webpage has been recorded, and at this time, step S207 is executed, that is, the page location information corresponding to the URL in the webpage location information table is read.
And reading the position corresponding to the URL, namely the position information of the webpage.
After the above step S207 is executed, the step S208 is continuously executed. In step S208, a web page corresponding to the URL is opened, and a load display portion for loading and displaying the web page is loaded according to the acquired page position information.
Specifically, when the web page corresponding to the URL is opened, the scroll _ offset position of the scroll bar may be updated according to the coordinates of the position of the scroll bar stored in the web page position information table, so as to reposition the display area of the web page, so as to display the web page to the page position displayed when the recording instruction is triggered.
For example, when a user browses a news website, the news website usually displays all the tiles in the whole page, for example, when the user browses the science and technology tiles in the network element 163, the user records the web page, and when the user opens the news website again, the browser can directly locate the news web page to the position of the science and technology tiles.
It should be noted that, after a certain web page is recorded by the method provided in steps S201 to S203, the method may further include:
when a recording instruction for triggering the recorded webpage again is received, acquiring the page position information of the webpage when the recording instruction is triggered, and updating the original page position information corresponding to the URL of the webpage in the webpage page position information table into the currently acquired page position information.
The method of re-recording is the same as the recording method in steps S201 to S203, but only the page position information and the recording time corresponding to the URL in the webpage page position information table are updated, and details are not repeated here.
The embodiment of the invention provides a method for displaying a webpage, which stores the page position information of the webpage browsed by a user by locally presetting a webpage position information table on a browser side, so that when the user browses the webpage again, the URL of the webpage is obtained, the URL is searched in the webpage position information table, the page position information corresponding to the URL is read, and when the page of the URL is opened, the webpage is loaded and displayed according to the obtained page position information, so that the display position of the webpage can be restored to the last position of the webpage browsed by the user last time, the flow of the user to the webpage again is facilitated, the user experience can be improved, and the method is more humanized.
Further, the user can customize the web page by using the method provided by the embodiment, for example, the user can directly jump to the recording position each time the user opens a predetermined website.
EXAMPLE III
Fig. 4 is a block diagram illustrating an overall structure of a browser according to an embodiment of the present invention, where the browser 600 includes:
an information table presetting module 610 configured to locally preset a web page position information table on the browser side, in which position information of a loading display part in a web page is marked;
a URL obtaining module 620 configured to obtain a URL of a current webpage requested to access;
a location information reading module 630 configured to search a URL in a webpage location information table, and read page location information corresponding to the URL;
and the web page loading module 640 is configured to open a web page corresponding to the URL, and load and display a loading display portion of the web page according to the acquired page position information.
Optionally, the information table presetting module 610 includes:
the instruction receiving unit 611 is configured to receive a recording instruction triggered by a user in a currently browsed webpage;
a position information obtaining unit 612 configured to obtain page position information of the web page when the recording instruction is triggered;
a storage unit 613 configured to store the URL of the web page and the acquired page position information in correspondence to a web page position information table established in advance.
Optionally, the instruction receiving unit 611 is further configured to receive a recording instruction for triggering recording of the recorded web page again;
accordingly, the number of the first and second electrodes,
the position information obtaining unit 612 is further configured to obtain page position information of the web page when the recording instruction is triggered;
the storage unit 613 is further configured to update the original page position information corresponding to the URL of the web page in the web page position information table to the currently acquired page position information.
Optionally, the triggering manner of the recording instruction received by the instruction receiving unit 611 includes:
receiving a recording instruction triggered by a user clicking a recording mark in a webpage; or,
receiving a recording instruction triggered by a user clicking a recording shortcut key; or,
receiving a collection instruction of a user to a webpage to trigger a recording instruction; or,
receiving an indication of closing a webpage by a user, and triggering and acquiring the position of the currently displayed webpage; or,
and receiving a webpage element in the current webpage selected by the user, and triggering the webpage element to be used as the center of the display area range of the browser.
Optionally, the recording indicator is located in a toolbar of the web page or in the page content of the web page.
Optionally, the browser distinguishes the recording mark before and after the recording instruction is triggered in any one of the following manners: magnification, color change, shape change.
Optionally, the position information reading module 630 includes:
the searching and determining unit 631 is configured to search the web page location information table and determine whether the URL is included therein;
a reading unit 632 configured to read page position information corresponding to a URL when the URL is included in the web page position information table;
the web page opening unit 633 is configured to, when the web page position information table does not include the URL, directly open the web page corresponding to the URL, and display the web page by default.
Optionally, the web page location information table includes: the number of the user recording marks and/or the recording time and/or the web page address and/or the current web page position information.
Optionally, the storage form of the web page location information table includes: stored separately from the local database file or stored in the database file.
Optionally, the page position information is marked in the form of scroll bar position coordinates of the web page.
The embodiment of the invention provides a browser, which stores page position information of a webpage browsed by a user by locally presetting a webpage position information table on a browser side, so that when the user browses the webpage again, a URL of the webpage is obtained, the URL is searched in the webpage position information table, page position information corresponding to the URL is read, and when the webpage of the URL is opened, the webpage is loaded and displayed according to the obtained page position information, so that the display position of the webpage can be restored to the last position of the user when the user browses the webpage last time, the flow of the user to the webpage again is facilitated, the user experience can be improved, and the browser is more humanized.
Further, the user can customize the web page by using the browser provided by the embodiment, for example, the user can directly jump to the recording position each time the user opens a predetermined website.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components in a browser according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
Thus, it should be appreciated by those skilled in the art that while a number of exemplary embodiments of the invention have been illustrated and described in detail herein, many other variations or modifications consistent with the principles of the invention may be directly determined or derived from the disclosure of the present invention without departing from the spirit and scope of the invention. Accordingly, the scope of the invention should be understood and interpreted to cover all such other variations or modifications.
The embodiment of the invention provides A1 and a method for displaying a webpage, which comprises the following steps: locally presetting a webpage page position information table on a browser side, wherein position information of a loading display part in a webpage is marked; acquiring a Uniform Resource Locator (URL) of a webpage which is requested to be accessed currently; searching the URL in the webpage page position information table, and reading page position information corresponding to the URL; and opening a webpage corresponding to the URL, and loading and displaying a loading and displaying part of the webpage according to the acquired page position information. A2, the method according to A1, wherein the preset mode of the webpage page position information table includes: receiving a recording instruction triggered by a user in a currently browsed webpage; acquiring page position information of the webpage when the recording instruction is triggered; and correspondingly storing the URL of the webpage and the acquired webpage position information into a preset webpage position information table. A3, the method according to A2, wherein further comprising: when a recording instruction for triggering the recorded webpage again is received, acquiring page position information of the webpage when the recording instruction is triggered; and updating the original page position information corresponding to the URL of the webpage in the webpage page position information table into the currently acquired page position information. A4, the method according to A2 or A3, wherein the triggering mode of the recording command includes: receiving a recording mark clicked by a user in a webpage to trigger the recording instruction; or receiving a recording instruction triggered by a user clicking a recording shortcut key; or receiving a collection instruction of a user for a webpage to trigger the recording instruction; or receiving an instruction of closing the webpage by a user, and triggering and acquiring the position of the currently displayed webpage; or receiving a webpage element in the current webpage selected by the user, and triggering the webpage element to be used as the center of the display area range of the browser. A5, the method according to A4, wherein the recording mark is located in a toolbar of a web page or in the page content of a web page. A6, the method according to A4 or A5, wherein the method distinguishes the recording mark before and after the recording command is triggered by any one of the following modes: magnification, color change, shape change. A7, the method according to any one of A1 to A6, wherein the searching the URL in the webpage position information table, and reading the page position information corresponding to the URL, comprises: searching the webpage page position information table and judging whether the webpage page position information table contains the URL or not; if yes, reading page position information corresponding to the URL; and if not, directly opening the webpage corresponding to the URL, and displaying the webpage in a default mode. A8, the method according to any one of A1 to A7, wherein the web page position information table includes: the number of the user recording marks and/or the recording time and/or the web page address and/or the current web page position information. A9, the method according to any one of A1 to A8, wherein the storage form of the web page position information table includes: stored separately from the local database file or stored in the database file. A10, the method according to any one of A1 to A9, wherein the page position information is marked in the form of scroll bar position coordinates of the web page.
The embodiment of the invention provides B11 and a browser, which comprises: the information table presetting module is configured to locally preset a webpage page position information table on a browser side, wherein position information of a loading display part in a webpage is marked; the uniform resource locator URL acquisition module is configured to acquire the URL of the webpage which is requested to be accessed currently; the position information reading module is configured to search the URL in the webpage page position information table and read page position information corresponding to the URL; and the webpage loading module is configured to open a webpage corresponding to the URL and load and display a loading display part of the webpage according to the acquired page position information. B12, the browser according to B11, wherein the information table presetting module comprises: the instruction receiving unit is configured to receive a recording instruction triggered by a user in a currently browsed webpage; the position information acquisition unit is configured to acquire page position information of the webpage when the recording instruction is triggered; and the storage unit is configured to correspondingly store the URL of the webpage and the acquired page position information into the webpage position information table established in advance. B13, the browser according to B12, wherein the instruction receiving unit is further configured to receive a recording re-triggering instruction for the recorded web page; correspondingly, the position information acquiring unit is further configured to acquire the page position information of the webpage when the recording instruction is triggered; the storage unit is further configured to update original page position information corresponding to the URL of the web page in the web page position information table to currently acquired page position information. B14, the browser according to B12 or B13, wherein the triggering mode of the recording command received by the command receiving unit comprises: receiving a recording mark clicked by a user in a webpage to trigger the recording instruction; or receiving a recording instruction triggered by a user clicking a recording shortcut key; or receiving a collection instruction of a user for a webpage to trigger the recording instruction; or receiving an instruction of closing the webpage by a user, and triggering and acquiring the position of the currently displayed webpage; or receiving a webpage element in the current webpage selected by the user, and triggering the webpage element to be used as the center of the display area range of the browser. B15, the browser according to B14, wherein the recording mark is located in a toolbar of the webpage or in the page content of the webpage. B16, the browser according to B14 or B15, wherein the browser distinguishes the recording marks before and after the recording command is triggered in any one of the following modes: magnification, color change, shape change. B17, the browser according to any one of B11 to B16, wherein the position information reading module comprises: the searching and judging unit is configured to search the webpage page position information table and judge whether the URL is contained in the webpage page position information table; the reading unit is configured to read page position information corresponding to the URL when the URL is contained in the webpage page position information table; and the webpage opening unit is configured to directly open the webpage corresponding to the URL and display the webpage in a default mode when the URL is not contained in the webpage page position information table. B18, the browser according to any one of B11 to B17, wherein the webpage position information table comprises: the number of the user recording marks and/or the recording time and/or the web page address and/or the current web page position information. B19, the browser according to any one of B11 to B18, wherein the storage form of the webpage page position information table comprises: stored separately from the local database file or stored in the database file. B20, the browser according to any one of B11 to B19, wherein the page position information is marked up in the form of scroll bar position coordinates of the web page.

Claims (10)

1. A method of displaying a web page, comprising:
locally presetting a webpage page position information table on a browser side, wherein position information of a loading display part in a webpage is marked;
acquiring a Uniform Resource Locator (URL) of a webpage which is requested to be accessed currently;
searching the URL in the webpage page position information table, and reading page position information corresponding to the URL;
and opening a webpage corresponding to the URL, and loading and displaying a loading and displaying part of the webpage according to the acquired page position information.
2. The method of claim 1, wherein the preset manner of the web page location information table comprises:
receiving a recording instruction triggered by a user in a currently browsed webpage;
acquiring page position information of the webpage when the recording instruction is triggered;
and correspondingly storing the URL of the webpage and the acquired webpage position information into a preset webpage position information table.
3. The method of claim 2, further comprising:
when a recording instruction for triggering the recorded webpage again is received, acquiring page position information of the webpage when the recording instruction is triggered;
and updating the original page position information corresponding to the URL of the webpage in the webpage page position information table into the currently acquired page position information.
4. The method of claim 2 or 3, wherein the triggering of the recording instruction comprises:
receiving a recording mark clicked by a user in a webpage to trigger the recording instruction; or,
receiving a recording instruction triggered by a user clicking a recording shortcut key; or,
receiving a collection instruction of a user for a webpage to trigger the recording instruction; or,
receiving an indication of closing a webpage by a user, and triggering and acquiring the position of the currently displayed webpage; or,
and receiving a webpage element in the current webpage selected by the user, and triggering the webpage element to be used as the center of the display area range of the browser.
5. The method of claim 4, wherein the recording indicator is located in a toolbar of the web page or in the page content of the web page.
6. A browser, comprising:
the information table presetting module is configured to locally preset a webpage page position information table on a browser side, wherein position information of a loading display part in a webpage is marked;
the uniform resource locator URL acquisition module is configured to acquire the URL of the webpage which is requested to be accessed currently;
the position information reading module is configured to search the URL in the webpage page position information table and read page position information corresponding to the URL;
and the webpage loading module is configured to open a webpage corresponding to the URL and load and display a loading display part of the webpage according to the acquired page position information.
7. The browser of claim 6, wherein the information table presetting module comprises:
the instruction receiving unit is configured to receive a recording instruction triggered by a user in a currently browsed webpage;
the position information acquisition unit is configured to acquire page position information of the webpage when the recording instruction is triggered;
and the storage unit is configured to correspondingly store the URL of the webpage and the acquired page position information into the webpage position information table established in advance.
8. The browser according to claim 7, wherein the instruction receiving unit is further configured to receive a re-triggering recording instruction for a recorded web page;
accordingly, the number of the first and second electrodes,
the position information acquisition unit is also configured to acquire the page position information of the webpage when the recording instruction is triggered;
the storage unit is further configured to update original page position information corresponding to the URL of the web page in the web page position information table to currently acquired page position information.
9. The browser according to claim 7 or 8, wherein the triggering manner of the recording instruction received by the instruction receiving unit includes:
receiving a recording mark clicked by a user in a webpage to trigger the recording instruction; or,
receiving a recording instruction triggered by a user clicking a recording shortcut key; or,
receiving a collection instruction of a user for a webpage to trigger the recording instruction; or,
receiving an indication of closing a webpage by a user, and triggering and acquiring the position of the currently displayed webpage; or,
and receiving a webpage element in the current webpage selected by the user, and triggering the webpage element to be used as the center of the display area range of the browser.
10. The browser of claim 9, wherein the recording mark is located in a toolbar of the web page or in the page content of the web page.
CN201310498735.7A 2013-10-22 2013-10-22 Webpage displaying method and browser Active CN103559227B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310498735.7A CN103559227B (en) 2013-10-22 2013-10-22 Webpage displaying method and browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310498735.7A CN103559227B (en) 2013-10-22 2013-10-22 Webpage displaying method and browser

Publications (2)

Publication Number Publication Date
CN103559227A true CN103559227A (en) 2014-02-05
CN103559227B CN103559227B (en) 2017-04-12

Family

ID=50013474

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310498735.7A Active CN103559227B (en) 2013-10-22 2013-10-22 Webpage displaying method and browser

Country Status (1)

Country Link
CN (1) CN103559227B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104156421A (en) * 2014-08-06 2014-11-19 百度在线网络技术(北京)有限公司 Method, device and system for displaying page
CN104317858A (en) * 2014-10-15 2015-01-28 天津云辰科技有限公司 Mobile intelligent equipment long picture browsing method
CN105302846A (en) * 2014-08-01 2016-02-03 腾讯科技(北京)有限公司 Method and device for restoring webpage
CN106354878A (en) * 2016-09-27 2017-01-25 北京小米移动软件有限公司 Page management method and device
CN106503179A (en) * 2016-10-31 2017-03-15 维沃移动通信有限公司 A kind of loading method of Webpage and mobile terminal
CN106528627A (en) * 2016-10-01 2017-03-22 奇酷互联网络科技(深圳)有限公司 Method and apparatus for loading and locating webpage browsing position
CN106648585A (en) * 2016-09-22 2017-05-10 北京小米移动软件有限公司 Method and apparatus for setting transparency of DOM element of webpage
CN107133291A (en) * 2017-04-24 2017-09-05 武汉斗鱼网络科技有限公司 A kind of method and apparatus of content of pages displaying
CN109450972A (en) * 2018-09-29 2019-03-08 阿里巴巴集团控股有限公司 A kind of processing method of data, device and equipment
CN110020235A (en) * 2017-08-23 2019-07-16 北京京东尚科信息技术有限公司 Web browser threedimensional model localization method, device, medium and electronic equipment
CN110209798A (en) * 2017-12-22 2019-09-06 北京奇虎科技有限公司 A kind of method for exhibiting data and device of redis database
CN112650423A (en) * 2020-12-20 2021-04-13 苏州浪潮智能科技有限公司 Webpage display method, system and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004111866A1 (en) * 2003-06-17 2004-12-23 Interpid Marketing Associates Limited Online employment recruiting system and method
CN1815476A (en) * 2005-01-28 2006-08-09 京瓷株式会社 Display apparatus
CN101814078A (en) * 2009-12-31 2010-08-25 优视科技有限公司 Accurate webpage-positioning method for mobile communication equipment terminals

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004111866A1 (en) * 2003-06-17 2004-12-23 Interpid Marketing Associates Limited Online employment recruiting system and method
CN1815476A (en) * 2005-01-28 2006-08-09 京瓷株式会社 Display apparatus
CN101814078A (en) * 2009-12-31 2010-08-25 优视科技有限公司 Accurate webpage-positioning method for mobile communication equipment terminals

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105302846A (en) * 2014-08-01 2016-02-03 腾讯科技(北京)有限公司 Method and device for restoring webpage
CN105302846B (en) * 2014-08-01 2020-06-26 腾讯科技(北京)有限公司 Method and device for restoring webpage
CN104156421A (en) * 2014-08-06 2014-11-19 百度在线网络技术(北京)有限公司 Method, device and system for displaying page
CN104317858A (en) * 2014-10-15 2015-01-28 天津云辰科技有限公司 Mobile intelligent equipment long picture browsing method
CN106648585A (en) * 2016-09-22 2017-05-10 北京小米移动软件有限公司 Method and apparatus for setting transparency of DOM element of webpage
CN106354878A (en) * 2016-09-27 2017-01-25 北京小米移动软件有限公司 Page management method and device
CN106528627A (en) * 2016-10-01 2017-03-22 奇酷互联网络科技(深圳)有限公司 Method and apparatus for loading and locating webpage browsing position
CN106503179A (en) * 2016-10-31 2017-03-15 维沃移动通信有限公司 A kind of loading method of Webpage and mobile terminal
CN107133291A (en) * 2017-04-24 2017-09-05 武汉斗鱼网络科技有限公司 A kind of method and apparatus of content of pages displaying
CN110020235A (en) * 2017-08-23 2019-07-16 北京京东尚科信息技术有限公司 Web browser threedimensional model localization method, device, medium and electronic equipment
CN110020235B (en) * 2017-08-23 2021-08-03 北京京东尚科信息技术有限公司 Web browser three-dimensional model positioning method, device, medium and electronic equipment
CN110209798A (en) * 2017-12-22 2019-09-06 北京奇虎科技有限公司 A kind of method for exhibiting data and device of redis database
CN110209798B (en) * 2017-12-22 2024-05-10 北京奇虎科技有限公司 Data display method and device of redis database
CN109450972A (en) * 2018-09-29 2019-03-08 阿里巴巴集团控股有限公司 A kind of processing method of data, device and equipment
CN112650423B (en) * 2020-12-20 2022-09-20 苏州浪潮智能科技有限公司 Webpage display method, system and medium
CN112650423A (en) * 2020-12-20 2021-04-13 苏州浪潮智能科技有限公司 Webpage display method, system and medium

Also Published As

Publication number Publication date
CN103559227B (en) 2017-04-12

Similar Documents

Publication Publication Date Title
CN103559227B (en) Webpage displaying method and browser
CN104077387B (en) A kind of web page contents display methods and browser device
CN106980700B (en) Method for searching network on browser side and browser
US8271560B2 (en) System, process and software arrangement for assisting in navigating the internet
CN103577477B (en) The methods of exhibiting of the browsing histories of browser and display systems
CN105868096B (en) For showing the method, device and equipment of web page test result in a browser
CN102385613A (en) Web page positioning method and system
CN104182429B (en) Web page processing method and terminal
EP2846268A1 (en) Graphical bookmark realization method, device and terminal for embedded browser
CN103617196A (en) Method, browser, server and system for recommending websites
CN103235800A (en) Preview method and preview system of search results
CN103365877B (en) Method and server to establishing catalogue after webpage progress transcoding
TWI410817B (en) Method and system for storing internet bookmark and computer program product using the method
CN103617241A (en) Search information processing method, browser terminal and server
KR101324460B1 (en) Information provision device, information provision method, and information recording medium
CN103761257B (en) Web page processing method and system based on mobile browser
KR20190103362A (en) Target target display method and device
US20090281994A1 (en) Interactive Search Result System, and Method Therefor
CN104239325A (en) Block positioning method and block positioning device
CN105204806A (en) Individual display method and device for mobile terminal webpage
CN104408133A (en) Webpage link area thermodynamic diagram display method and device
CN107016023A (en) Cumulative search processing method and device
KR20130028150A (en) Information provision device, information provision method, programme, and information recording medium
CN108509189A (en) A kind of component of the H5 time gates based on DOM unifies implementation method
CN103309896B (en) Web browser method, device and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220727

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right