CN104021231A - Method and device for displaying webpage in browser - Google Patents

Method and device for displaying webpage in browser Download PDF

Info

Publication number
CN104021231A
CN104021231A CN201410298927.8A CN201410298927A CN104021231A CN 104021231 A CN104021231 A CN 104021231A CN 201410298927 A CN201410298927 A CN 201410298927A CN 104021231 A CN104021231 A CN 104021231A
Authority
CN
China
Prior art keywords
web page
page contents
webpage
browser
keyword
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
CN201410298927.8A
Other languages
Chinese (zh)
Other versions
CN104021231B (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 Hongxiang Technical Service 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 CN201410298927.8A priority Critical patent/CN104021231B/en
Publication of CN104021231A publication Critical patent/CN104021231A/en
Application granted granted Critical
Publication of CN104021231B publication Critical patent/CN104021231B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • 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/957Browsing optimisation, e.g. caching or content distillation
    • 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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions

Landscapes

  • Engineering & Computer Science (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)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method and a device for displaying a webpage in a browser. The method comprises the following steps: opening the webpage in the browser, and sending a URL (Uniform Resource Locator) of the opened webpage to a server of the browser; receiving keyword information, corresponding to the URL, returned by the server of the browser; searching matched webpage content keywords in the opened webpage according to the keyword information; and converting the matched webpage content keywords into a linking element for searching, and displaying the linking element in the opened webpage, wherein the linking element carries linking information for issuing a searching request to an appointed search engine according to the matched webpage content keywords. By utilizing the technical scheme, the searching efficiency can be increased, and the user experience can be improved, namely, the searching of the user is relatively convenient and rapid.

Description

The method and apparatus of display web page in browser
Technical field
The present invention relates to Internet technical field, particularly relate to the method and apparatus of display web page in a kind of browser.
Background technology
Browser refers to can display web page server or HTML (Hyper Text Mark-up Language, the HTML (Hypertext Markup Language)) file content of file system, and allows a kind of software of user and these file interactions.It is used for being presented at text, image and other information in WWW or LAN (Local Area Network) etc., and user can be rapidly, browse easily.
In correlation technique, when user need to understand the relevant information of certain keyword in the content of text of webpage, conventionally adopt following steps to realize, first copy this keyword, then open search engine, then this keyword is affixed to the input frame of search engine, and send searching request to server, the Search Results that last reception server returns.Further, if user need to understand the relevant information of multiple keywords, need to realize through above-mentioned steps for each keyword so.As can be seen here, obtain at present the complex operation step of the relevant information of keyword in the content of text of webpage, search efficiency is lower, affects user and experiences.
Summary of the invention
In view of the above problems, the present invention has been proposed to method and the corresponding device of display web page in a kind of browser that overcomes the problems referred to above or address the above problem are at least in part provided.
According to one aspect of the present invention, the method of display web page in a kind of browser is provided, comprise: in browser, open webpage, the described URL (Uniform Resource Locator, URL(uniform resource locator)) that opens webpage is sent to the server of described browser; Receive the key word information corresponding to described URL that the server of described browser returns; According to described key word information at the described web page contents keyword that finds coupling in opening webpage; The web page contents keyword of described coupling is converted into the linking element of a search use, and described in being presented at, opens webpage, wherein, the oriented appointment search engine of described linking element band is initiated the link information of searching request according to the web page contents keyword of coupling.
Alternatively, described key word information comprises: search described web page contents keyword at the described context string whether existing in opening webpage; And indicate the positional information of described web page contents keyword position in described context string.
Alternatively, indicate the positional information of described web page contents keyword position in described context string, comprising: the start bit of described web page contents keyword in described context string and the character length of described web page contents keyword.
Alternatively, the kind of the webpage URL of the described server that is sent to described browser comprises: according to the configuration information of browser side, the webpage URL of the regular expression that meets webpage URL generating, wherein, described configuration information is issued to described browser by described server; Or, meet the webpage URL of searching request formula.
Alternatively,, comprising at the described web page contents keyword that finds coupling in opening webpage according to described key word information: described DOM (Document Object Model, document dbject model) tree of opening webpage is traveled through; Obtain the web page contents corresponding with described key word information; In described web page contents, find the DOM node corresponding to web page contents keyword of coupling, and locking.
Alternatively, the hyperlink request of the linking element of described search use is returned by described server side, or, generated according to described web page contents keyword and for appointment search engine by described browser lateral root.
Alternatively, after the web page contents keyword of described coupling is converted into the linking element of a search use, also comprise: the linking element being converted into is generated to DOM node, be inserted in former webpage dom tree; Or the former DOM node of revising described web page contents keyword is the DOM node that the linking element that is converted into generates.
Alternatively, the web page contents keyword of described coupling is converted into the linking element of a search use, comprises: obtain using described web page contents keyword as keyword and set up associated URL with specifying search engine; In the described HTML code of opening webpage, by obtain described and the code position of specifying search engine to set up associated URL to add described web page contents keyword to.
Alternatively, by obtain described and the code position of specifying search engine to set up associated URL to add described web page contents keyword to, comprising: before or after the described and appointment search engine obtaining is set up to the code position that associated URL adds described web page contents keyword to.
Alternatively, the web page contents keyword of described coupling is converted into the linking element of a search use, and described in being presented at, opens webpage, comprising: described in the linking element after transforming is presented at highlighted font, open on webpage; Or, described in the linking element after transforming is presented at the font size different from other fonts of webpage, open on webpage.
According to another aspect of the present invention, the device of display web page in a kind of browser is also provided, comprising:
Sending module, is configured to open webpage in browser, the described uniform resource position mark URL of opening webpage is sent to the server of described browser;
Receiver module, is configured to receive the key word information corresponding to described URL that the server of described browser returns;
Search module, be configured to according to described key word information at the described web page contents keyword that finds coupling in opening webpage;
Modular converter, be configured to the web page contents keyword of described coupling to be converted into the linking element of a search use, and described in being presented at, open webpage, wherein, the oriented appointment search engine of described linking element band is initiated the link information of searching request according to the web page contents keyword of coupling.
Alternatively, described key word information comprises: search described web page contents keyword at the described context string whether existing in opening webpage; And indicate the positional information of described web page contents keyword position in described context string.
Alternatively, indicate the positional information of described web page contents keyword position in described context string, comprising: the start bit of described web page contents keyword in described context string and the character length of described web page contents keyword.
Alternatively, the kind of the webpage URL of the described server that is sent to described browser comprises: according to the configuration information of browser side, the webpage URL of the regular expression that meets webpage URL generating, wherein, described configuration information is issued to described browser by described server; Or, meet the webpage URL of searching request formula.
Alternatively, described in, searching module is also configured to: the described dom tree of opening webpage is traveled through; Obtain the web page contents corresponding with described key word information; In described web page contents, find the DOM node corresponding to web page contents keyword of coupling, and locking.
Alternatively, the hyperlink request of the linking element of described search use is returned by described server side, or, generated according to described web page contents keyword and for appointment search engine by described browser lateral root.
Alternatively, described device also comprises: processing module, be configured to after the web page contents keyword of described coupling is converted into the linking element of a search use by described modular converter, the linking element being converted into is generated to DOM node, be inserted in former webpage dom tree; Or the former DOM node of revising described web page contents keyword is the DOM node that the linking element that is converted into generates.
Alternatively, described modular converter is also configured to: obtain using described web page contents keyword as keyword and set up associated URL with specifying search engine; In the described HTML code of opening webpage, by obtain described and the code position of specifying search engine to set up associated URL to add described web page contents keyword to.
Alternatively, described modular converter is also configured to: by obtain described and specify before or after search engine sets up the code position that associated URL adds described web page contents keyword to.
Alternatively, described modular converter is also configured to: described in the linking element after transforming is presented at highlighted font, open on webpage; Or, described in the linking element after transforming is presented at the font size different from other fonts of webpage, open on webpage.
According to technical scheme of the present invention, browser is sent to the URL that opens webpage the server of browser, the key word information corresponding to URL of returning according to server is opening the web page contents keyword that finds coupling in webpage, and the web page contents keyword of coupling is converted into the linking element of a search use, be presented at and open webpage.The link information of initiating searching request according to web page contents keyword due to the oriented appointment search engine of linking element band of this search use, therefore in the time that user need to understand the relevant information of web page contents keyword, can directly trigger the linking element of this search use, realize to specifying search engine to initiate searching request according to web page contents keyword, and without by first copying web page contents keyword in correlation technique, then open search engine, then this web page contents keyword is affixed to the input frame of search engine, and send searching request to server, the loaded down with trivial details step of the Search Results that last reception server returns.Particularly in the time that user need to understand the relevant information of multiple web page contents keywords, the linking element that the present invention can directly trigger the search use that each web page contents keyword is corresponding obtains relevant information, has solved the problem that needs to obtain through above-mentioned loaded down with trivial details step relevant information in correlation technique for each web page contents keyword.Therefore, technical scheme of the present invention can improve the efficiency of search, improves user and experiences, that is, for user, it is more convenient to search for.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to better understand technological means of the present invention, and can be implemented according to the content of instructions, and for above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
According to the detailed description to the specific embodiment of the invention by reference to the accompanying drawings below, those skilled in the art will understand above-mentioned and other objects, advantage and feature of the present invention more.
Brief description of the drawings
By reading below detailed description of the preferred embodiment, various other advantage and benefits will become cheer and bright for those of ordinary skill in the art.Accompanying drawing is only for the object of preferred implementation is shown, and do not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 shows a kind of process flow diagram of the method for display web page in browser according to an embodiment of the invention;
Fig. 2 shows the another kind of process flow diagram of the method for display web page in browser according to an embodiment of the invention;
Fig. 3 shows the third process flow diagram of the method for display web page in browser according to an embodiment of the invention; And
Fig. 4 shows the structural representation of the device of display web page in browser according to an embodiment of the invention.
Embodiment
Exemplary embodiment of the present disclosure is described below with reference to accompanying drawings in more detail.Although shown exemplary embodiment of the present disclosure in accompanying drawing, but should be appreciated that and can realize the disclosure and the embodiment that should do not set forth limits here with various forms.On the contrary, it is in order more thoroughly to understand the disclosure that these embodiment are provided, and can be by the those skilled in the art that conveys to complete the scope of the present disclosure.
In correlation technique, mention, obtain at present the complex operation step of the relevant information of keyword in the content of text of webpage, search efficiency is lower, affects user and experiences.
For solving the problems of the technologies described above, the embodiment of the present invention provides the method for display web page in a kind of browser, and Fig. 1 shows a kind of process flow diagram of the method for display web page in browser according to an embodiment of the invention.As shown in Figure 1, the method at least comprises the following steps S102 to step S108.
Step S102, in browser, open webpage, the URL that opens webpage is sent to the server of browser.
The key word information corresponding to above-mentioned URL that the server of step S104, reception browser returns.
Step S106, according to key word information opening the web page contents keyword that finds coupling in webpage.
Step S108, the web page contents keyword of coupling is converted into the linking element of a search use, and is presented at and opens webpage, wherein, the oriented appointment search engine of linking element band is initiated the link information of searching request according to the web page contents keyword of coupling.
According to technical scheme of the present invention, browser is sent to the URL that opens webpage the server of browser, the key word information corresponding to URL of returning according to server is opening the web page contents keyword that finds coupling in webpage, and the web page contents keyword of coupling is converted into the linking element of a search use, be presented at and open webpage.The link information of initiating searching request according to web page contents keyword due to the oriented appointment search engine of linking element band of this search use, therefore in the time that user need to understand the relevant information of web page contents keyword, can directly trigger the linking element of this search use, realize to specifying search engine to initiate searching request according to web page contents keyword, and without by first copying web page contents keyword in correlation technique, then open search engine, then this web page contents keyword is affixed to the input frame of search engine, and send searching request to server, the loaded down with trivial details step of the Search Results that last reception server returns.Particularly in the time that user need to understand the relevant information of multiple web page contents keywords, the linking element that the present invention can directly trigger the search use that each web page contents keyword is corresponding obtains relevant information, has solved the problem that needs to obtain through above-mentioned loaded down with trivial details step relevant information in correlation technique for each web page contents keyword.Therefore, technical scheme of the present invention can improve the efficiency of search, improves user and experiences, that is, for user, it is more convenient to search for.
Above, in step S102, the kind that is sent to the webpage URL of the server of browser can be according to the configuration information of browser side, the webpage URL of the regular expression that meets webpage URL of generation, and this configuration information is issued to browser by server; Or can be also the webpage URL that meets searching request formula.Secondly, the key word information of mentioning in step S104 can be to search web page contents keyword opening the context string whether existing in webpage, and indicate the positional information of web page contents keyword position in context string, for example start bit of web page contents keyword in context string and the character length of web page contents keyword.For instance, the content of key word information can be referring to as follows:
Wherein, three groups of key word information in catalogue list, have been comprised.First, the value str1 of content (context) searches web page contents keyword (searchkey1) opening the context string whether existing in webpage, the value 1 that starts (start) is the start bit of web page contents keyword searchkey1 in context string, and the value 1 of length (length) is the character length of web page contents keyword searchkey1; Secondly, the value str2 of context searches web page contents keyword searchkey2 opening the context string whether existing in webpage, the value 2 of start is web page contents keyword searchkey2 start bits in context string, and the value 2 of length is character lengths of web page contents keyword searchkey2; Moreover, it is to search web page contents keyword " peace " opening the context string whether existing in webpage that the value of context " promotes world peace and development ", the value 5 of start is web page contents keyword " peace " start bits in context string, and the value 2 of length is character lengths of web page contents keyword " peace ".It should be noted that, in catalogue list, can also comprise many group key word information, in addition, the content of key word information, except the form of above-mentioned expression, can also adopt other forms, the invention is not restricted to this.
In one embodiment of the invention, step S106 can adopt following technological means to realize: first the dom tree of opening webpage is traveled through, by traversal mode so that obtain the web page contents corresponding with key word information, in web page contents, find afterwards the DOM node corresponding to web page contents keyword of coupling, and lock this DOM node, in order to the follow-up linking element that the web page contents keyword of coupling is converted into a search use, this technological means has realized the web page contents keyword of fast finding to coupling.
Find the web page contents keyword of coupling in step S106 is opening webpage according to key word information after, in step S108, further the web page contents keyword of coupling is converted into the linking element of a search use, the link information of initiating searching request according to web page contents keyword due to the oriented appointment search engine of linking element band of this search use, therefore in the time that user need to understand the relevant information of web page contents keyword, can directly trigger the linking element (as clicked or double-click the linking element of this search use) of this search use, realize to specifying search engine to initiate searching request according to web page contents keyword, wherein, the hyperlink request of the linking element of search use can be returned by server side, or also can be by browser lateral root according to web page contents keyword, and for specifying search engine to generate.Further, when the hyperlink request of linking element of search use by browser lateral root according to web page contents keyword, and for specify search engine generate time, step S108 can adopt following technological means to realize: first obtain using web page contents keyword as keyword, and set up associated URL with appointment search engine, and then in the HTML code of opening webpage, by obtain with the code position of specifying search engine to set up associated URL and add web page contents keyword to, for example, by obtain with specify before or after search engine sets up the code position that associated URL adds web page contents keyword to.For instance, above the 3rd of list the group of key word information, in opening webpage according to this key word information, step S106 finds the web page contents keyword " peace " of coupling afterwards, further obtain using web page contents keyword " peace " as keyword, and set up associated URL with appointment search engine, " http://www.so.com/s? q=%E5%92%8C%E5%B9%B3 & src=xxx ", and then in the HTML code of opening webpage, by obtain with specify before search engine sets up the code position that associated URL adds web page contents keyword " peace " to.Here, add obtain with to specify search engine to set up HTML code before associated URL as follows:
It should be noted that, in above-mentioned example, be by obtain with specify before search engine sets up the code position that associated URL adds web page contents keyword " peace " to, after can certainly adding the code position of web page contents keyword " peace " to, can realize " peace " this web page contents keyword is searched for.
In another embodiment of the present invention, in step S108, the linking element after transforming can be presented at and be opened webpage in the mode of the sytlized font different from webpage font or special demonstration.For example, with highlighted font, linking element is presented at and is opened on webpage; Or, with the font size different from other fonts of webpage, linking element is presented at and is opened on webpage; Again or, be presented at and open on webpage adding the linking element of background patterns, etc.This visual effect intuitively makes user can find rapidly web page contents keyword, thus make to search for more convenient, the resource of saving time.Moreover, after step S108, the linking element being converted into can also be generated to DOM node, be inserted in former webpage dom tree; Or the former DOM node of amendment web page contents keyword is the DOM node that the linking element that is converted into generates, and uses in order to follow-up inquiry.
The multiple implementation of more than having introduced each link in the embodiment shown in Fig. 1, in the browser embodiment of the present invention being provided below by concrete preferred embodiment, the method for display web page is described further.
Fig. 2 shows the another kind of process flow diagram of the method for display web page in browser according to an embodiment of the invention.As shown in Figure 2, the method comprises the following steps S202 to step S212.
Step S202, in browser, open webpage, the URL that opens webpage is sent to the server of browser.In this step, the kind that is sent to the webpage URL of the server of browser can be according to the configuration information of browser side, the webpage URL of the regular expression that meets webpage URL of generation, and this configuration information is issued to browser by server; Or can be also the webpage URL that meets searching request formula.
The key word information corresponding to above-mentioned URL that the server of step S204, reception browser returns.
In this step, key word information can be to search web page contents keyword opening the context string whether existing in webpage, and indicate the positional information of web page contents keyword position in context string, for example start bit of web page contents keyword in context string and the character length of web page contents keyword.
Step S206, the dom tree of opening webpage is traveled through the mode by traversal and then obtain the web page contents corresponding with key word information.
Step S208, in web page contents, find the DOM node corresponding to web page contents keyword of coupling, and lock this DOM node.
Step S210, obtain using web page contents keyword as keyword and with specify search engine set up associated URL.
Step S212, in the HTML code of opening webpage, by obtain with specify before or after search engine sets up the code position that associated URL adds web page contents keyword to, realize the linking element that web page contents keyword is converted into a search use, and be presented at and open webpage, wherein, the oriented appointment search engine of this linking element band is initiated the link information of searching request according to the web page contents keyword of coupling.
In this step, the linking element after transforming can be presented at and open on webpage with highlighted font, or, being presented at and opening on webpage with the font size different from other fonts of webpage, this visual effect intuitively makes user search convenient.In addition, the hyperlink request of the linking element of search use also can be returned by server side.
Further, after step S212, the linking element being converted into can also be generated to DOM node, be inserted in former webpage dom tree; Or the former DOM node of amendment web page contents keyword is the DOM node that the linking element that is converted into generates, and uses in order to follow-up inquiry.
Above step S202 can further realize according to flow process as shown in Figure 3 to step S212.,, after in S302, browser is opened webpage, in S304, browser sends the request of obtaining key word information to its server, has carried the URL that opens webpage in request.And then in S306, server sends the request of obtaining key word information according to S304 browser and judges whether to exist corresponding key word information, if existed, key word information is returned to browser, if there is no, finish this flow process, or return to expression and do not exist the prompting of key word information to browser.In S308, browser receives after the key word information that server returns, further opening the web page contents keyword of searching coupling in webpage.In S310, judge whether subsequently the web page contents keyword that finds coupling in webpage opening, if, the web page contents keyword of coupling is converted into the linking element of a search use in S312, and be presented at and open webpage, wherein, the oriented appointment search engine of linking element band is initiated the link information of searching request according to the web page contents keyword of coupling; If not, finish this flow process.
It should be noted that, in practical application, above-mentioned all optional embodiments can adopt the mode combination in any of combination, form optional embodiment of the present invention, and this is no longer going to repeat them.
Based on same inventive concept, the embodiment of the present invention also provides the device of display web page in a kind of browser, to realize the method for display web page in above-mentioned browser.
Fig. 4 shows the structural representation of the device of display web page in browser according to an embodiment of the invention.Referring to Fig. 4, this device at least comprises: sending module 410, receiver module 420, search module 430 and modular converter 440.
Now introduce the annexation between each composition of device or function and the each several part of device of display web page in the browser of the embodiment of the present invention:
Sending module 410, is configured to open webpage in browser, the uniform resource position mark URL of opening webpage is sent to the server of browser;
Receiver module 420, is coupled with sending module 410, is configured to receive the key word information corresponding to URL that the server of browser returns;
Search module 430, be coupled with receiver module 420, be configured to according to key word information opening the web page contents keyword that finds coupling in webpage;
Modular converter 440, with search module 430 and be coupled, be configured to the web page contents keyword of coupling to be converted into the linking element of a search use, and be presented at and open webpage, wherein, the oriented appointment search engine of linking element band is initiated the link information of searching request according to the web page contents keyword of coupling.
In one embodiment of the invention, key word information comprises: search web page contents keyword opening the context string whether existing in webpage; And indicate the positional information of web page contents keyword position in context string.
In one embodiment of the invention, indicate the positional information of web page contents keyword position in context string, comprising: the start bit of web page contents keyword in context string and the character length of web page contents keyword.
In one embodiment of the invention, the kind that is sent to the webpage URL of the server of browser comprises: according to the configuration information of browser side, the webpage URL of the regular expression that meets webpage URL generating, wherein, configuration information is issued to browser by server; Or, meet the webpage URL of searching request formula.
In one embodiment of the invention, searching module 430 can also be configured to: the document dbject model dom tree of opening webpage is traveled through; Obtain the web page contents corresponding with key word information; In web page contents, find the DOM node corresponding to web page contents keyword of coupling, and locking.
In one embodiment of the invention, the hyperlink request of the linking element of search use is returned by server side, or, generated according to web page contents keyword and for appointment search engine by browser lateral root.
In one embodiment of the invention, as shown in Figure 4, said apparatus can also comprise: processing module 450, be coupled with modular converter 440, be configured to after the web page contents keyword of coupling is converted into the linking element of a search use by modular converter 440, the linking element being converted into is generated to DOM node, be inserted in former webpage dom tree; Or the former DOM node of amendment web page contents keyword is the DOM node that the linking element that is converted into generates.
In one embodiment of the invention, modular converter 440 can also be configured to: obtain using web page contents keyword as keyword and set up associated URL with specifying search engine; In the HTML (Hypertext Markup Language) HTML code of opening webpage, by obtain with the code position of specifying search engine to set up associated URL and add web page contents keyword to.
In one embodiment of the invention, modular converter 440 can also be configured to: by obtain with specify before or after search engine sets up the code position that associated URL adds web page contents keyword to.
In one embodiment of the invention, modular converter 440 can also be configured to: the linking element after transforming is presented at and is opened on webpage with highlighted font; Or, the linking element after transforming is presented at and is opened on webpage with the font size different from other fonts of webpage.
Method, the device of display web page in browser based on above each embodiment provides, based on same inventive concept, the embodiment of the present invention also provides a kind of browser, comprises above-mentioned any one device.
According to the combination of above-mentioned any one preferred embodiment or multiple preferred embodiments, the embodiment of the present invention can reach following beneficial effect:
According to technical scheme of the present invention, browser is sent to the URL that opens webpage the server of browser, the key word information corresponding to URL of returning according to server is opening the web page contents keyword that finds coupling in webpage, and the web page contents keyword of coupling is converted into the linking element of a search use, be presented at and open webpage.The link information of initiating searching request according to web page contents keyword due to the oriented appointment search engine of linking element band of this search use, therefore in the time that user need to understand the relevant information of web page contents keyword, can directly trigger the linking element of this search use, realize to specifying search engine to initiate searching request according to web page contents keyword, and without by first copying web page contents keyword in correlation technique, then open search engine, then this web page contents keyword is affixed to the input frame of search engine, and send searching request to server, the loaded down with trivial details step of the Search Results that last reception server returns.Particularly in the time that user need to understand the relevant information of multiple web page contents keywords, the linking element that the present invention can directly trigger the search use that each web page contents keyword is corresponding obtains relevant information, has solved the problem that needs to obtain through above-mentioned loaded down with trivial details step relevant information in correlation technique for each web page contents keyword.Therefore, technical scheme of the present invention can improve the efficiency of search, improves user and experiences, that is, for user, it is more convenient to search for.
In addition, linking element after conversion can be presented at and open on webpage with highlighted font, or, be presented at and open on webpage with the font size different from other fonts of webpage, this visual effect intuitively makes user can find rapidly web page contents keyword, thereby make to search for more convenient, the resource of saving time.
In the instructions that provided herein, a large amount of details are described.But, can understand, embodiments of the invention can be put into practice in the situation that there is no these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand one or more in each inventive aspect, in the above in the description of exemplary embodiment of the present invention, each feature of the present invention is grouped together into single embodiment, figure or sometimes in its description.But, the method for the disclosure should be construed to the following intention of reflection: the present invention for required protection requires than the more feature of feature of clearly recording in each claim.Or rather, as reflected in claims below, inventive aspect is to be less than all features of disclosed single embodiment above.Therefore, claims of following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and can the module in the equipment in embodiment are adaptively changed and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and can put them in addition multiple submodules or subelement or sub-component.At least some in such feature and/or process or unit are mutually repelling, and can adopt any combination to combine all processes or the unit of disclosed all features in this instructions (comprising claim, summary and the accompanying drawing followed) and disclosed any method like this or equipment.Unless clearly statement in addition, in this instructions (comprising claim, summary and the accompanying drawing followed) disclosed each feature can be by providing identical, be equal to or the alternative features of similar object replaces.
In addition, those skilled in the art can understand, although embodiment more described herein comprise some feature instead of further feature included in other embodiment, the combination of the feature of different embodiment means within scope of the present invention and forms different embodiment.For example, in claims, the one of any of embodiment required for protection can be used with array mode arbitrarily.
All parts embodiment of the present invention can realize with hardware, or realizes with the software module of moving on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that and can use in practice microprocessor or digital signal processor (DSP) to realize according to the some or all functions of the some or all parts in the device of display web page in the browser of the embodiment of the present invention.The present invention can also be embodied as part or all equipment or the device program (for example, computer program and computer program) for carrying out method as described herein.Realizing program of the present invention and can be stored on computer-readable medium like this, or can there is the form of one or more signal.Such signal can be downloaded and obtain from internet website, or provides on carrier signal, or provides with any other form.
It should be noted above-described embodiment the present invention will be described instead of limit the invention, and those skilled in the art can design alternative embodiment in the case of not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and is not listed as element or step in the claims.Being positioned at word " " before element or " one " does not get rid of and has multiple such elements.The present invention can be by means of including the hardware of some different elements and realizing by means of the computing machine of suitably programming.In the unit claim of having enumerated some devices, several in these devices can be to carry out imbody by same hardware branch.The use of word first, second and C grade does not represent any order.Can be title by these word explanations.
So far, those skilled in the art will recognize that, illustrate and described of the present invention multiple exemplary embodiment although detailed herein, but, without departing from the spirit and scope of the present invention, still can directly determine or derive many other modification or the amendment that meet the principle of the invention according to content disclosed by the invention.Therefore, scope of the present invention should be understood and regard as and cover all these other modification or amendments.
The method that the invention also discloses display web page in A1, a kind of browser, comprising:
In browser, open webpage, the described uniform resource position mark URL of opening webpage is sent to the server of described browser;
Receive the key word information corresponding to described URL that the server of described browser returns;
According to described key word information at the described web page contents keyword that finds coupling in opening webpage;
The web page contents keyword of described coupling is converted into the linking element of a search use, and described in being presented at, opens webpage, wherein, the oriented appointment search engine of described linking element band is initiated the link information of searching request according to the web page contents keyword of coupling.
A2, according to the method described in A1, wherein, described key word information comprises:
Search described web page contents keyword at the described context string whether existing in opening webpage; And
Indicate the positional information of described web page contents keyword position in described context string.
A3, according to the method described in A2, wherein, indicate the positional information of described web page contents keyword position in described context string, comprising:
The start bit of described web page contents keyword in described context string and the character length of described web page contents keyword.
A4, according to the method described in A1 to A3 any one, wherein, described in be sent to the webpage URL of the server of described browser kind comprise:
According to the configuration information of browser side, the webpage URL of the regular expression that meets webpage URL of generation, wherein, described configuration information is issued to described browser by described server; Or
Meet the webpage URL of searching request formula.
A5, according to the method described in A1 to A4 any one, wherein,, comprising at the described web page contents keyword that finds coupling in opening webpage according to described key word information:
The described document dbject model dom tree of opening webpage is traveled through;
Obtain the web page contents corresponding with described key word information;
In described web page contents, find the DOM node corresponding to web page contents keyword of coupling, and locking.
A6, according to the method described in A1 to A5 any one, wherein, the hyperlink request of the linking element of described search use is returned by described server side, or, by described browser lateral root according to described web page contents keyword and for specify search engine generate.
A7, according to the method described in A1 to A6 any one, wherein, after the web page contents keyword of described coupling is converted into the linking element of a search use, also comprise:
The linking element being converted into is generated to DOM node, be inserted in former webpage dom tree; Or
The former DOM node of revising described web page contents keyword is the DOM node that the linking element that is converted into generates.
A8, according to the method described in A1 to A7 any one, wherein, the web page contents keyword of described coupling is converted into the linking element of a search use, comprising:
Obtain using described web page contents keyword as keyword and set up associated URL with specifying search engine;
In the described HTML (Hypertext Markup Language) HTML code of opening webpage, by obtain described and the code position of specifying search engine to set up associated URL to add described web page contents keyword to.
A9, according to the method described in A8, wherein, by obtain described and the code position of specifying search engine to set up associated URL to add described web page contents keyword to, comprising:
By obtain described and specify before or after search engine sets up the code position that associated URL adds described web page contents keyword to.
A10, according to the method described in A1 to A9 any one, wherein, the web page contents keyword of described coupling is converted into the linking element of a search use, and described in being presented at, opens webpage, comprising:
Described in being presented at highlighted font, opens on webpage linking element after transforming; Or
Described in being presented at the font size different from other fonts of webpage, opens on webpage linking element after transforming.
The device of display web page in B11, a kind of browser, comprising:
Sending module, is configured to open webpage in browser, the described uniform resource position mark URL of opening webpage is sent to the server of described browser;
Receiver module, is configured to receive the key word information corresponding to described URL that the server of described browser returns;
Search module, be configured to according to described key word information at the described web page contents keyword that finds coupling in opening webpage;
Modular converter, be configured to the web page contents keyword of described coupling to be converted into the linking element of a search use, and described in being presented at, open webpage, wherein, the oriented appointment search engine of described linking element band is initiated the link information of searching request according to the web page contents keyword of coupling.
B12, according to the device described in B11, wherein, described key word information comprises:
Search described web page contents keyword at the described context string whether existing in opening webpage; And
Indicate the positional information of described web page contents keyword position in described context string.
B13, according to the device described in B12, wherein, indicate the positional information of described web page contents keyword position in described context string, comprising:
The start bit of described web page contents keyword in described context string and the character length of described web page contents keyword.
B14, according to the device described in B11 to B13 any one, wherein, described in be sent to the webpage URL of the server of described browser kind comprise:
According to the configuration information of browser side, the webpage URL of the regular expression that meets webpage URL of generation, wherein, described configuration information is issued to described browser by described server; Or
Meet the webpage URL of searching request formula.
B15, according to the device described in B11 to B14 any one, wherein, described in search module and be also configured to:
The described document dbject model dom tree of opening webpage is traveled through;
Obtain the web page contents corresponding with described key word information;
In described web page contents, find the DOM node corresponding to web page contents keyword of coupling, and locking.
B16, according to the device described in B11 to B15 any one, wherein, the hyperlink request of the linking element of described search use is returned by described server side, or, by described browser lateral root according to described web page contents keyword and for specify search engine generate.
B17, according to the device described in B11 to B16 any one, wherein, also comprise:
Processing module, is configured to after the web page contents keyword of described coupling is converted into the linking element of a search use by described modular converter, and the linking element being converted into is generated to DOM node, is inserted in former webpage dom tree; Or the former DOM node of revising described web page contents keyword is the DOM node that the linking element that is converted into generates.
B18, according to the device described in B11 to B17 any one, wherein, described modular converter is also configured to:
Obtain using described web page contents keyword as keyword and set up associated URL with specifying search engine;
In the described HTML (Hypertext Markup Language) HTML code of opening webpage, by obtain described and the code position of specifying search engine to set up associated URL to add described web page contents keyword to.
B19, according to the device described in B18, wherein, described modular converter is also configured to:
By obtain described and specify before or after search engine sets up the code position that associated URL adds described web page contents keyword to.
B20, according to the device described in B11 to B19 any one, wherein, described modular converter is also configured to:
Described in being presented at highlighted font, opens on webpage linking element after transforming; Or
Described in being presented at the font size different from other fonts of webpage, opens on webpage linking element after transforming.

Claims (10)

1. a method for display web page in browser, comprising:
In browser, open webpage, the described uniform resource position mark URL of opening webpage is sent to the server of described browser;
Receive the key word information corresponding to described URL that the server of described browser returns;
According to described key word information at the described web page contents keyword that finds coupling in opening webpage;
The web page contents keyword of described coupling is converted into the linking element of a search use, and described in being presented at, opens webpage, wherein, the oriented appointment search engine of described linking element band is initiated the link information of searching request according to the web page contents keyword of coupling.
2. method according to claim 1, wherein, described key word information comprises:
Search described web page contents keyword at the described context string whether existing in opening webpage; And
Indicate the positional information of described web page contents keyword position in described context string.
3. method according to claim 2, wherein, indicates the positional information of described web page contents keyword position in described context string, comprising:
The start bit of described web page contents keyword in described context string and the character length of described web page contents keyword.
4. according to the method described in claims 1 to 3 any one, wherein, described in be sent to the webpage URL of the server of described browser kind comprise:
According to the configuration information of browser side, the webpage URL of the regular expression that meets webpage URL of generation, wherein, described configuration information is issued to described browser by described server; Or
Meet the webpage URL of searching request formula.
5. according to the method described in claim 1 to 4 any one, wherein,, comprising at the described web page contents keyword that finds coupling in opening webpage according to described key word information:
The described document dbject model dom tree of opening webpage is traveled through;
Obtain the web page contents corresponding with described key word information;
In described web page contents, find the DOM node corresponding to web page contents keyword of coupling, and locking.
6. according to the method described in claim 1 to 5 any one, wherein, after the web page contents keyword of described coupling is converted into the linking element of a search use, also comprise:
The linking element being converted into is generated to DOM node, be inserted in former webpage dom tree; Or
The former DOM node of revising described web page contents keyword is the DOM node that the linking element that is converted into generates.
7. according to the method described in claim 1 to 6 any one, wherein, the web page contents keyword of described coupling is converted into the linking element of a search use, comprises:
Obtain using described web page contents keyword as keyword and set up associated URL with specifying search engine;
In the described HTML (Hypertext Markup Language) HTML code of opening webpage, by obtain described and the code position of specifying search engine to set up associated URL to add described web page contents keyword to.
8. method according to claim 7, wherein, by obtain described and the code position of specifying search engine to set up associated URL to add described web page contents keyword to, comprising:
By obtain described and specify before or after search engine sets up the code position that associated URL adds described web page contents keyword to.
9. according to the method described in claim 1 to 8 any one, wherein, the web page contents keyword of described coupling is converted into the linking element of a search use, and described in being presented at, opens webpage, comprising:
Described in being presented at highlighted font, opens on webpage linking element after transforming; Or
Described in being presented at the font size different from other fonts of webpage, opens on webpage linking element after transforming.
10. a device for display web page in browser, comprising:
Sending module, is configured to open webpage in browser, the described uniform resource position mark URL of opening webpage is sent to the server of described browser;
Receiver module, is configured to receive the key word information corresponding to described URL that the server of described browser returns;
Search module, be configured to according to described key word information at the described web page contents keyword that finds coupling in opening webpage;
Modular converter, be configured to the web page contents keyword of described coupling to be converted into the linking element of a search use, and described in being presented at, open webpage, wherein, the oriented appointment search engine of described linking element band is initiated the link information of searching request according to the web page contents keyword of coupling.
CN201410298927.8A 2014-06-26 2014-06-26 The method and apparatus that webpage is shown in browser Active CN104021231B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410298927.8A CN104021231B (en) 2014-06-26 2014-06-26 The method and apparatus that webpage is shown in browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410298927.8A CN104021231B (en) 2014-06-26 2014-06-26 The method and apparatus that webpage is shown in browser

Publications (2)

Publication Number Publication Date
CN104021231A true CN104021231A (en) 2014-09-03
CN104021231B CN104021231B (en) 2017-07-28

Family

ID=51437985

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410298927.8A Active CN104021231B (en) 2014-06-26 2014-06-26 The method and apparatus that webpage is shown in browser

Country Status (1)

Country Link
CN (1) CN104021231B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104537088A (en) * 2014-12-31 2015-04-22 百度在线网络技术(北京)有限公司 Information showing method and device
CN104715067A (en) * 2015-03-31 2015-06-17 北京奇虎科技有限公司 Method, device and system for making key words on web page and browser client
CN104951556A (en) * 2015-06-30 2015-09-30 北京奇虎科技有限公司 Method and device for generating prompt message in search result page
CN105630866A (en) * 2014-11-26 2016-06-01 统一有限责任两合公司 Method for referring to specific content on a web page and web browsing system
CN105930369A (en) * 2016-04-13 2016-09-07 南京新与力文化传播有限公司 Method for rapidly analyzing Web information
CN106095848A (en) * 2016-06-02 2016-11-09 北京奇虎科技有限公司 The method of text association, terminal unit and corresponding server unit
WO2016201878A1 (en) * 2015-06-18 2016-12-22 百度在线网络技术(北京)有限公司 Method and apparatus for providing local search suggestion
CN107818108A (en) * 2016-09-13 2018-03-20 阿里巴巴集团控股有限公司 A kind of webpage rendering intent, apparatus and system
CN107870721A (en) * 2016-09-27 2018-04-03 北京搜狗科技发展有限公司 Search result shows method, apparatus and the device showed for search result
WO2019141043A1 (en) * 2018-01-16 2019-07-25 中兴通讯股份有限公司 Method and device for extracting search engine of browser, and storage medium
CN111931040A (en) * 2020-06-30 2020-11-13 深圳市世强元件网络有限公司 Recommendation method for service entry of service entity in network platform
CN112395524A (en) * 2020-11-24 2021-02-23 广州市久邦数码科技有限公司 Method, device and storage medium for displaying word annotation and paraphrase
CN112579941A (en) * 2020-12-17 2021-03-30 京东数字科技控股股份有限公司 Information processing method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1932817A (en) * 2006-09-15 2007-03-21 陈远 Common interconnection network content keyword interactive system
CN102789484A (en) * 2012-06-28 2012-11-21 奇智软件(北京)有限公司 Method and device for webpage information processing
CN103577597A (en) * 2013-11-15 2014-02-12 北京奇虎科技有限公司 Keyword searching system based on current browse webpage

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1932817A (en) * 2006-09-15 2007-03-21 陈远 Common interconnection network content keyword interactive system
CN102789484A (en) * 2012-06-28 2012-11-21 奇智软件(北京)有限公司 Method and device for webpage information processing
CN103577597A (en) * 2013-11-15 2014-02-12 北京奇虎科技有限公司 Keyword searching system based on current browse webpage

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630866A (en) * 2014-11-26 2016-06-01 统一有限责任两合公司 Method for referring to specific content on a web page and web browsing system
US10817651B2 (en) 2014-11-26 2020-10-27 Unify Gmbh & Co. Kg Method for referring to specific content on a web page and web browsing system
CN104537088A (en) * 2014-12-31 2015-04-22 百度在线网络技术(北京)有限公司 Information showing method and device
CN104537088B (en) * 2014-12-31 2018-01-30 百度在线网络技术(北京)有限公司 information display method and device
CN104715067A (en) * 2015-03-31 2015-06-17 北京奇虎科技有限公司 Method, device and system for making key words on web page and browser client
CN105095351B (en) * 2015-06-18 2019-03-26 百度在线网络技术(北京)有限公司 It is a kind of for providing the method and apparatus of local search suggestion
WO2016201878A1 (en) * 2015-06-18 2016-12-22 百度在线网络技术(北京)有限公司 Method and apparatus for providing local search suggestion
US10489460B2 (en) 2015-06-18 2019-11-26 Baidu Online Network Technology (Beijing) Co., Ltd. Method and apparatus for providing local search suggestion
CN104951556A (en) * 2015-06-30 2015-09-30 北京奇虎科技有限公司 Method and device for generating prompt message in search result page
CN105930369A (en) * 2016-04-13 2016-09-07 南京新与力文化传播有限公司 Method for rapidly analyzing Web information
CN106095848A (en) * 2016-06-02 2016-11-09 北京奇虎科技有限公司 The method of text association, terminal unit and corresponding server unit
CN107818108A (en) * 2016-09-13 2018-03-20 阿里巴巴集团控股有限公司 A kind of webpage rendering intent, apparatus and system
CN107870721A (en) * 2016-09-27 2018-04-03 北京搜狗科技发展有限公司 Search result shows method, apparatus and the device showed for search result
CN107870721B (en) * 2016-09-27 2022-06-07 北京搜狗科技发展有限公司 Search result display method and device for search result display
WO2019141043A1 (en) * 2018-01-16 2019-07-25 中兴通讯股份有限公司 Method and device for extracting search engine of browser, and storage medium
CN111931040A (en) * 2020-06-30 2020-11-13 深圳市世强元件网络有限公司 Recommendation method for service entry of service entity in network platform
CN111931040B (en) * 2020-06-30 2024-01-12 深圳市世强元件网络有限公司 Recommendation method for service entry of service entity in network platform
CN112395524A (en) * 2020-11-24 2021-02-23 广州市久邦数码科技有限公司 Method, device and storage medium for displaying word annotation and paraphrase
CN112579941A (en) * 2020-12-17 2021-03-30 京东数字科技控股股份有限公司 Information processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN104021231B (en) 2017-07-28

Similar Documents

Publication Publication Date Title
CN104021231A (en) Method and device for displaying webpage in browser
CN103631875B (en) Method for carrying out network search on browser side and browser
US8661335B2 (en) Methods and systems for identifying content elements
EP3161678B1 (en) Deep links for native applications
US20120246558A1 (en) Social bookmarking of resources exposed in web pages
CN108052632B (en) Network information acquisition method and system and enterprise information search system
US9836438B2 (en) Methods and systems of outputting content of interest
CN101231636A (en) Convenient information search method, system and an input method system
CN102184185A (en) Method and equipment used for multi-media resource searching
CN102193798B (en) Method for automatically acquiring Open application programming interface (API) based on Internet
US10810181B2 (en) Refining structured data indexes
CN103577392A (en) Keyword pushing method and device based on current browse webpage
CN106126693A (en) The sending method of the related data of a kind of webpage and device
CN105447192A (en) Method and device for recommending personalized search terms on navigation page
CN104036003A (en) Search result integration method and device
CN103366011B (en) Pass through the method and device of browser address bar access registrar network address
Cox et al. SISSVoc: A Linked Data API for access to SKOS vocabularies
CN101300559A (en) Extensible remote tag markup system and method
Grasso et al. Effective web scraping with oxpath
CN104317929A (en) Search result display optimizing method and device
EP2431891A1 (en) Methods and systems of outputting content of interest
CN109246069B (en) Webpage login method and device and readable storage medium
Dixit et al. Design of an ontology based adaptive crawler for hidden web
Yu et al. Towards linked data conventions for delivery of environmental data using netCDF
CN106469189A (en) A kind of front end assists browsing method and the device of transcoding

Legal Events

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

Effective date of registration: 20220802

Address after: 300450 No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science Park, Binhai New Area, Tianjin

Patentee after: 3600 Technology Group 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
TR01 Transfer of patent right

Effective date of registration: 20230711

Address after: 1765, floor 17, floor 15, building 3, No. 10 Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: Beijing Hongxiang Technical Service Co.,Ltd.

Address before: 300450 No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science Park, Binhai New Area, Tianjin

Patentee before: 3600 Technology Group Co.,Ltd.