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.
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.