The method and apparatus that webpage is shown in browser
Technical field
The present invention relates to Internet technical field, the method and apparatus that webpage is shown in more particularly to a kind of browser.
Background technology
Browser refers to that web page server or HTML (the Hyper Text Mark-up of file system can be shown
Language, HTML) file content, and allow a kind of software of user and these file interactions.It is used for showing
Text, image and other information in WWW or LAN etc., user can be browsed rapidly, easily.
In correlation technique, user is it should be understood that in the content of text of webpage during the relevant information of certain keyword, generally use
Following steps are realized, the keyword is replicated first, search engine is then opened, the keyword then is affixed into search engine
Input frame, and send searching request to server, the search result that last the reception server is returned.Further, if with
Family is it should be understood that the relevant information of multiple keywords, then be required for realizing by above-mentioned steps for each keyword.By
This is visible, and the complex operation step of the relevant information of keyword in the content of text of webpage is obtained at present, and search efficiency is relatively low, shadow
Ring Consumer's Experience.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on
The method and corresponding device of webpage are shown in the browser for stating problem.
According to one aspect of the present invention there is provided a kind of method that webpage is shown in browser, including:In a browser
Webpage is opened, the URL (Uniform Resource Locator, URL) of the opening webpage is sent to institute
State the server of browser;Receive the key word information corresponding to the URL that the server of the browser is returned;According to institute
State the web page contents keyword that key word information finds matching in the opening webpage;The web page contents of the matching are closed
Keyword is converted into the linking element of a search, and is shown in the opening webpage, wherein, the linking element band is oriented to specify
Search engine initiates the link information of searching request according to the web page contents keyword of matching.
Alternatively, the key word information includes:Search the web page contents keyword it is described opening webpage in whether
The context string of presence;And indicate the positional information of web page contents keyword position in the context string.
Alternatively, the positional information of web page contents keyword position in the context string is indicated, including:Institute
State the character length of start bit and the web page contents keyword of the web page contents keyword in the context string.
Alternatively, described send to the webpage URL of the server of browser species includes:According to browser side
Configuration information, the webpage URL of the regular expression for meeting webpage URL of generation, wherein, the configuration information is by the server
It is issued to the browser;Or, meet the webpage URL of searching request formula.
Alternatively, the web page contents keyword of matching is found in the opening webpage according to the key word information,
Including:DOM (Document Object Model, the document dbject model) trees of the opening webpage are traveled through;Obtain with
The corresponding web page contents of the key word information;The web page contents keyword that matching is found in the web page contents is corresponding
DOM node, and lock.
Alternatively, the hyperlink request of the linking element of the search is returned by the server side, or, by described clear
Device lateral root is look at according to the web page contents keyword and for specifying search for engine generation.
Alternatively, the web page contents keyword of the matching is converted into after the linking element of a search, in addition to:
The linking element generation DOM node translated into, is inserted into former webpage dom tree;Or, change the web page contents crucial
The former DOM node of word is the DOM node for the linking element generation being converted into.
Alternatively, the web page contents keyword of the matching is converted into the linking element of a search, including:Obtain with
The web page contents keyword as keyword and sets up the URL associated with specifying search for engine;In the opening webpage
In HTML code, the URL associated described in acquisition with specifying search for engine foundation is added to the web page contents keyword
Code position.
Alternatively, the URL associated described in acquisition with specifying search for engine foundation is added to the web page contents key
The code position of word, including:The URL associated with specifying search for engine foundation described in acquisition is added into the web page contents to close
Before or after the code position of keyword.
Alternatively, the web page contents keyword of the matching is converted into the linking element of a search, and is shown in institute
Opening webpage is stated, including:Linking element after conversion is included on the opening webpage with highlighted font;Or, it will convert
Linking element afterwards is shown on the opening webpage with the font size different from webpage other fonts.
According to another aspect of the present invention, the device that webpage is shown in a kind of browser is additionally provided, including:
Sending module, is configured to open webpage in a browser, and the uniform resource position mark URL of the opening webpage is sent out
Deliver to the server of the browser;
Receiving module, is configured to receive the key word information corresponding to the URL that the server of the browser is returned;
Searching modul, is configured to find the web page contents of matching in the opening webpage according to the key word information
Keyword;
Modular converter, is configured to the web page contents keyword of the matching being converted into the linking element of a search, and
The opening webpage is shown in, wherein, the oriented web page contents key for specifying search for engine according to matching of the linking element band
Word initiates the link information of searching request.
Alternatively, the key word information includes:Search the web page contents keyword it is described opening webpage in whether
The context string of presence;And indicate the positional information of web page contents keyword position in the context string.
Alternatively, the positional information of web page contents keyword position in the context string is indicated, including:Institute
State the character length of start bit and the web page contents keyword of the web page contents keyword in the context string.
Alternatively, described send to the webpage URL of the server of browser species includes:According to browser side
Configuration information, the webpage URL of the regular expression for meeting webpage URL of generation, wherein, the configuration information is by the server
It is issued to the browser;Or, meet the webpage URL of searching request formula.
Alternatively, the searching modul is additionally configured to:The dom tree of the opening webpage is traveled through;Obtain with it is described
The corresponding web page contents of key word information;The corresponding DOM of web page contents keyword of matching is found in the web page contents
Node, and lock.
Alternatively, the hyperlink request of the linking element of the search is returned by the server side, or, by described clear
Device lateral root is look at according to the web page contents keyword and for specifying search for engine generation.
Alternatively, described device also includes:Processing module, is configured in the webpage of the matching in the modular converter
Hold keyword to be converted into after the linking element of a search, the linking element generation DOM node translated into is inserted into original
In webpage dom tree;Or, the former DOM node for changing the web page contents keyword is the DOM for the linking element generation being converted into
Node.
Alternatively, the modular converter is additionally configured to:Obtain using the web page contents keyword as keyword and with finger
Determine the URL that search engine sets up association;It is described opening webpage HTML code in, by described in acquisition with specify search for engine
The URL for setting up association is added to the code position of the web page contents keyword.
Alternatively, the modular converter is additionally configured to:The URL associated described in acquisition with specifying search for engine foundation is added
Before or after the code position for being added to the web page contents keyword.
Alternatively, the modular converter is additionally configured to:Linking element after conversion is included with highlighted font to beat described
Open on webpage;Or, the linking element after conversion is included with the font size different from webpage other fonts to open described
On webpage.
According to technical scheme, browser sends the URL for opening webpage to the server of browser, according to clothes
The key word information corresponding to URL that business device is returned finds the web page contents keyword of matching, and general in webpage is opened
The web page contents keyword matched somebody with somebody is converted into the linking element of a search, is shown in opening webpage.Due to the link of the search
Element band is oriented to specify search for the link information that engine initiates searching request according to web page contents keyword, therefore when user needs
When understanding the relevant information of web page contents keyword, the linking element of the search can be directly triggered, is realized to specifying search for
Engine initiates searching request according to web page contents keyword, without crucial by replicating web page contents in correlation technique first
Word, then opens search engine, and the web page contents keyword is then affixed to the input frame of search engine, and is sent out to server
Go out searching request, the tedious steps for the search result that last the reception server is returned.Particularly as user it should be understood that multiple nets
During the relevant information of page content keyword, the present invention can directly trigger the chain of each corresponding search of web page contents keyword
Connect member and usually obtain relevant information, solve in correlation technique and to be required for for each web page contents keyword by above-mentioned numerous
The problem of trivial step obtains relevant information.Therefore, technical scheme can improve the efficiency of search, improve user's body
Test, i.e. for a user, it is more convenient to search for.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can
Become apparent, below especially exemplified by the embodiment of the present invention.
According to the accompanying drawings to the detailed description of the specific embodiment of the invention, those skilled in the art will be brighter
Above-mentioned and other purposes, the advantages and features of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit is common for this area
Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention
Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows a kind of flow chart for the method that webpage is shown in browser according to an embodiment of the invention;
Fig. 2 shows another flow chart for the method that webpage is shown in browser according to an embodiment of the invention;
Fig. 3 shows the third flow chart for the method that webpage is shown in browser according to an embodiment of the invention;
And
Fig. 4 shows the structural representation for the device that webpage is shown in browser according to an embodiment of the invention.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
Complete conveys to those skilled in the art.
Referred in correlation technique, the operating procedure that the relevant information of keyword in the content of text of webpage is obtained at present is numerous
Trivial, search efficiency is relatively low, influences Consumer's Experience.
In order to solve the above technical problems, the embodiments of the invention provide a kind of method that webpage is shown in browser, Fig. 1 shows
A kind of flow chart of the method for webpage is gone out in browser according to an embodiment of the invention to show.As shown in figure 1, this method
At least comprise the following steps S102 to step S108.
Step S102, webpage is opened in a browser, the URL for opening webpage is sent to the server of browser.
The key word information corresponding to above-mentioned URL that step S104, the server of reception browser are returned.
Step S106, foundation key word information find the web page contents keyword of matching in webpage is opened.
Step S108, the web page contents keyword of matching is converted into the linking element of a search, and is shown in opening
Webpage, wherein, linking element band is oriented to specify search for the chain that engine initiates searching request according to the web page contents keyword of matching
Connect information.
According to technical scheme, browser sends the URL for opening webpage to the server of browser, according to clothes
The key word information corresponding to URL that business device is returned finds the web page contents keyword of matching, and general in webpage is opened
The web page contents keyword matched somebody with somebody is converted into the linking element of a search, is shown in opening webpage.Due to the link of the search
Element band is oriented to specify search for the link information that engine initiates searching request according to web page contents keyword, therefore when user needs
When understanding the relevant information of web page contents keyword, the linking element of the search can be directly triggered, is realized to specifying search for
Engine initiates searching request according to web page contents keyword, without crucial by replicating web page contents in correlation technique first
Word, then opens search engine, and the web page contents keyword is then affixed to the input frame of search engine, and is sent out to server
Go out searching request, the tedious steps for the search result that last the reception server is returned.Particularly as user it should be understood that multiple nets
During the relevant information of page content keyword, the present invention can directly trigger the chain of each corresponding search of web page contents keyword
Connect member and usually obtain relevant information, solve in correlation technique and to be required for for each web page contents keyword by above-mentioned numerous
The problem of trivial step obtains relevant information.Therefore, technical scheme can improve the efficiency of search, improve user's body
Test, i.e. for a user, it is more convenient to search for.
In above step S102, the webpage URL of the server of transmission to browser species can be according to browser side
Configuration information, the webpage URL of the regular expression for meeting webpage URL of generation, and the configuration information is issued to by server
Browser;Or can also be the webpage URL for meeting searching request formula.Secondly, the key word information referred in step S104 can
To be to look for the context string that web page contents keyword whether there is in webpage is opened, and indicate web page contents keyword
The start bit and webpage of the positional information of position in context string, such as web page contents keyword in context string
The character length of content keyword.For example, the content of key word information may refer to as follows:
Wherein, three groups of key word informations are contained in catalogue list.First, the value str1 of content (context) is to look for
The context string that web page contents keyword (searchkey1) whether there is in webpage is opened, starting the value 1 of (start) is
Start bits of the web page contents keyword searchkey1 in context string, the value 1 of length (length) is that web page contents are closed
Keyword searchkey1 character length;Secondly, context value str2 is to look for web page contents keyword searchkey2 and existed
Open the context string that whether there is in webpage, start value 2 is web page contents keyword searchkey2 in content character
Start bit in string, length value 2 is web page contents keyword searchkey2 character length;Furthermore, context value
" promoting world peace and development " is to look for the content character that web page contents keyword " peace " whether there is in webpage is opened
String, start value 5 is start bit of the web page contents keyword " peace " in context string, and length value 2 is in webpage
Hold the character length of keyword " peace ".It should be noted that multigroup key word information can also be included in catalogue list, this
Outside, the content of key word information can also use other forms, the invention is not restricted to this in addition to the form of above-mentioned expression.
In one embodiment of the invention, step S106 can be realized using following technological means:First to opening
The dom tree of webpage is traveled through, by way of traversal and then acquisition web page contents corresponding with key word information, afterwards in net
The corresponding DOM node of web page contents keyword of matching is found in page content, and locks the DOM node, in case subsequently general
The web page contents keyword matched somebody with somebody is converted into the linking element of a search, and the technological means realizes the quick net for finding matching
Page content keyword.
After step S106 finds the web page contents keyword of matching according to key word information in opening webpage, step
The web page contents keyword of matching is further converted into the linking element of a search in rapid S108, due to the chain of the search
The oriented link information for specifying search for engine according to web page contents keyword initiation searching request of element band is connect, therefore when user needs
It is to be understood that during the relevant information of web page contents keyword, can directly trigger the linking element of the search (as clicked on or double-clicking
The linking element of the search), realize and initiate searching request to specifying search for engine according to web page contents keywords, wherein, search
The hyperlink request of the linking element of rope can be returned by server side, or can also be closed by browser lateral root according to web page contents
Keyword is simultaneously generated for specifying search for engine.Further, when search linking element hyperlink request by browser lateral root
According to web page contents keyword and for specifying search for during engine generation, step S108 can be realized using following technological means:
Obtain first using web page contents keyword as keyword and set up the URL associated with specifying search for engine, and then opening net
In the HTML code of page, acquisition is set up into the code that the URL associated is added to web page contents keyword with specifying search for engine
Position, for example, by acquisition with specify search for engine set up the URL associated be added to web page contents keywords code position it
It is preceding or afterwards.For example, above list the 3rd group of key word information, is beating in step S106 according to the key word information
Open after finding the web page contents keyword " peace " of matching in webpage, further obtain with web page contents keyword " peace "
The URL, i.e. " http that associate are set up as keyword and with specifying search for engine://www.so.com/sQ=%E5%92%
8C%E5%B9%B3&src=xxx ", and then in the HTML code for opening webpage, acquisition is built with specifying search for engine
The URL of vertical association is added to before the code position of web page contents keyword " peace ".Here, addition obtain with specifying search for
HTML code before engine sets up the URL of association is as follows:
It should be noted that being that the URL associated with specifying search for engine foundation of acquisition is added into net in above-mentioned example
Before the code position of page content keyword " peace ", naturally it is also possible to be added to the code bit of web page contents keyword " peace "
After putting, it can realize that this web page contents keyword is scanned for " peace ".
In another embodiment of the present invention, in step S108 can by the linking element after conversion with webpage font
Different sytlized fonts or the mode of Special display includes it to open webpage.For example, linking element is shown with highlighted font
Show on webpage is opened;Or, linking element is included on webpage is opened with the font size different from webpage other fonts;
Again or, by add background patterns linking element include open webpage on, etc..This intuitively visual effect to use
Family can find web page contents keyword rapidly, so that search is more convenient, save time resource.Furthermore, step
After S108, the linking element generation DOM node that can also be translated into is inserted into former webpage dom tree;Or modification net
The former DOM node of page content keyword is the DOM node for the linking element generation being converted into, in case follow-up inquiry is used.
A variety of implementations of each link in the embodiment shown in Fig. 1 are described above, below by specific preferred real
Example is applied to showing that the method for webpage is described further in browser provided in an embodiment of the present invention.
Fig. 2 shows another flow chart for the method that webpage is shown in browser according to an embodiment of the invention.
As shown in Fig. 2 this method comprises the following steps S202 to step S212.
Step S202, webpage is opened in a browser, the URL for opening webpage is sent to the server of browser.The step
In rapid, the webpage URL of the server of transmission to browser species can be the configuration information according to browser side, the symbol of generation
The webpage URL of webpage URL regular expression is closed, and the configuration information is issued to browser by server;Or can also be
Meet the webpage URL of searching request formula.
The key word information corresponding to above-mentioned URL that step S204, the server of reception browser are returned.
In the step, key word information can be to look for the content that web page contents keyword whether there is in webpage is opened
Character string, and indicate the positional information of web page contents keyword position in context string, such as web page contents keyword
The character length of start bit and web page contents keyword in context string.
Step S206, the dom tree for opening webpage is traveled through, by way of traversal and then acquisition and key word information
Corresponding web page contents.
Step S208, the corresponding DOM node of web page contents keyword for finding in web page contents matching, and lock should
DOM node.
Step S210, acquisition using web page contents keyword as keyword and set up what is associated with specifying search for engine
URL。
Step S212, in the HTML code for opening webpage, acquisition is set up into the URL associated with specifying search for engine and added
Before or after the code position for being added to web page contents keyword, the chain that web page contents keyword is converted into a search is realized
Element is connect, and is shown in opening webpage, wherein, the oriented engine that specifies search for of the linking element band is closed according to the web page contents of matching
Keyword initiates the link information of searching request.
In the step, can by the linking element after conversion with highlighted font include open webpage on, or, with net
The different font size of other fonts of page is shown on opening webpage, and this intuitively visual effect make it that user's search is more square
Just.In addition, the hyperlink request of the linking element of search can also be returned by server side.
Further, after step S212, the linking element generation DOM node that can also be translated into is inserted into original
In webpage dom tree;Or the DOM node that the former DOM node of modification web page contents keyword is the linking element generation being converted into,
In case follow-up inquiry is used.
Above step S202 to step S212 can further be realized according to flow as shown in Figure 3.That is, browsed in S302
Device is opened after webpage, and browser sends the request for obtaining key word information to its server in S304, is carried and is beaten in request
Open the URL of webpage.And then the request that server sends acquisition key word information according to S304 browsers in S306 judges whether to deposit
In corresponding key word information, if it is present key word information is returned into browser, if it does not exist, then terminating this
Flow, or the prompting represented in the absence of key word information is returned to browser.Browser receives server return in S308
Key word information after, the web page contents keyword of matching is further searched in webpage is opened.Judge whether in subsequent S310
The web page contents keyword of matching is found in webpage is opened, if so, then by the web page contents keyword of matching in S312
The linking element of a search is converted into, and is shown in opening webpage, wherein, linking element band is oriented to specify search for engine foundation
The web page contents keyword of matching initiates the link information of searching request;If it is not, then terminating this flow.
It should be noted that in practical application, above-mentioned all optional embodiments can be any group by the way of combining
Close, form the alternative embodiment of the present invention, this is no longer going to repeat them.
Based on same inventive concept, the embodiment of the present invention additionally provides the device that webpage is shown in a kind of browser, with reality
The method that webpage is shown in existing above-mentioned browser.
Fig. 4 shows the structural representation for the device that webpage is shown in browser according to an embodiment of the invention.Ginseng
See Fig. 4, the device at least includes:Sending module 410, receiving module 420, searching modul 430 and modular converter 440.
Each composition of the device of webpage or the function of device are shown in the browser for now introducing the embodiment of the present invention and each
Annexation between part:
Sending module 410, is configured to open webpage in a browser, and the uniform resource position mark URL for opening webpage is sent out
Deliver to the server of browser;
Receiving module 420, is coupled with sending module 410, be configured to receive browser server return correspond to
URL key word information;
Searching modul 430, is coupled with receiving module 420, is configured to search in webpage is opened according to key word information
To the web page contents keyword of matching;
Modular converter 440, is coupled with searching modul 430, is configured to the web page contents keyword of matching being converted into one
The linking element of search, and opening webpage is shown in, wherein, the oriented net for specifying search for engine according to matching of linking element band
Page content keyword initiates the link information of searching request.
In one embodiment of the invention, key word information includes:Web page contents keyword is searched in webpage is opened
The context string that whether there is;And indicate the positional information of web page contents keyword position in context string.
In one embodiment of the invention, the position letter of web page contents keyword position in context string is indicated
Breath, including:The character length of start bit and web page contents keyword of the web page contents keyword in context string.
In one embodiment of the invention, the species sent to the webpage URL of the server of browser includes:According to clear
Look at the configuration information of device side, the webpage URL of the regular expression for meeting webpage URL of generation, wherein, configuration information is by server
It is issued to browser;Or, meet the webpage URL of searching request formula.
In one embodiment of the invention, searching modul 430 is also configured as:File object mould to opening webpage
Type dom tree is traveled through;Obtain web page contents corresponding with key word information;Found in web page contents in the webpage of matching
Hold the corresponding DOM node of keyword, and lock.
In one embodiment of the invention, the hyperlink request of the linking element of search is returned by server side, or,
By browser lateral root according to web page contents keyword and for specifying search for engine generation.
In one embodiment of the invention, as shown in figure 4, said apparatus can also include:Processing module 450, with turning
Mold changing block 440 is coupled, and is configured to be converted into the web page contents keyword of matching in modular converter 440 link of one search
After element, the linking element generation DOM node translated into is inserted into former webpage dom tree;Or, in modification webpage
The former DOM node for holding keyword is the DOM node for the linking element generation being converted into.
In one embodiment of the invention, modular converter 440 is also configured as:Obtain and made with web page contents keyword
The URL associated is set up for keyword and with specifying search for engine;In the HTML HTML code for opening webpage,
Acquisition is set up into the code position that the URL associated is added to web page contents keyword with specifying search for engine.
In one embodiment of the invention, modular converter 440 is also configured as:By acquisition with specifying search for engine
The URL for setting up association is added to before or after the code position of web page contents keyword.
In one embodiment of the invention, modular converter 440 is also configured as:By the linking element after conversion with height
Bright font is shown on opening webpage;Or, by the linking element after conversion with the font size different from webpage other fonts
It is shown on opening webpage.
Based on method, the device that webpage is shown in the browser that each embodiment is provided above, based on same inventive concept, sheet
Inventive embodiments additionally provide a kind of browser, including above-mentioned any one device.
According to the combination of any one above-mentioned preferred embodiment or multiple preferred embodiments, the embodiment of the present invention can reach
Following beneficial effect:
According to technical scheme, browser sends the URL for opening webpage to the server of browser, according to clothes
The key word information corresponding to URL that business device is returned finds the web page contents keyword of matching, and general in webpage is opened
The web page contents keyword matched somebody with somebody is converted into the linking element of a search, is shown in opening webpage.Due to the link of the search
Element band is oriented to specify search for the link information that engine initiates searching request according to web page contents keyword, therefore when user needs
When understanding the relevant information of web page contents keyword, the linking element of the search can be directly triggered, is realized to specifying search for
Engine initiates searching request according to web page contents keyword, without crucial by replicating web page contents in correlation technique first
Word, then opens search engine, and the web page contents keyword is then affixed to the input frame of search engine, and is sent out to server
Go out searching request, the tedious steps for the search result that last the reception server is returned.Particularly as user it should be understood that multiple nets
During the relevant information of page content keyword, the present invention can directly trigger the chain of each corresponding search of web page contents keyword
Connect member and usually obtain relevant information, solve in correlation technique and to be required for for each web page contents keyword by above-mentioned numerous
The problem of trivial step obtains relevant information.Therefore, technical scheme can improve the efficiency of search, improve user's body
Test, i.e. for a user, it is more convenient to search for.
In addition, conversion after linking element can be shown in highlighted font opening webpage on, or, with webpage other
The different font size of font is shown on opening webpage, and this intuitively visual effect allows users to find webpage rapidly
Content keyword, so that search is more convenient, saves time resource.
In the specification that this place is provided, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention
Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect, exist
Above in the description of the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:It is i.e. required to protect
The application claims of shield features more more than the feature being expressly recited in each claim.More precisely, such as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself
All as the separate embodiments of the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment
Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any
Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power
Profit is required, summary and accompanying drawing) disclosed in each feature can or similar purpose identical, equivalent by offer alternative features come generation
Replace.
Although in addition, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments
In included some features rather than further feature, but the combination of the feature of be the same as Example does not mean in of the invention
Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of any
Mode it can use in any combination.
The present invention all parts embodiment can be realized with hardware, or with one or more processor run
Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that can use in practice
Microprocessor or digital signal processor (DSP) show the device of webpage to realize in browser according to embodiments of the present invention
In some or all parts some or all functions.The present invention is also implemented as described herein for performing
The some or all equipment or program of device (for example, computer program and computer program product) of method.So
Realization the present invention program can store on a computer-readable medium, or can have one or more signal shape
Formula.Such signal can be downloaded from internet website and obtained, and either be provided or with any other shape on carrier signal
Formula is provided.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not
Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of some different elements and coming real by means of properly programmed computer
It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame
Claim.
So far, although those skilled in the art will appreciate that detailed herein have shown and described multiple showing for the present invention
Example property embodiment, still, still can be direct according to present disclosure without departing from the spirit and scope of the present invention
It is determined that or deriving many other variations or modifications for meeting the principle of the invention.Therefore, the scope of the present invention is understood that and recognized
It is set to and covers other all these variations or modifications.
The invention also discloses a kind of method that webpage is shown in A1, browser, including:
Webpage is opened in a browser, and the uniform resource position mark URL of the opening webpage is sent to the browser
Server;
Receive the key word information corresponding to the URL that the server of the browser is returned;
The web page contents keyword of matching is found in the opening webpage according to the key word information;
The web page contents keyword of the matching is converted into the linking element of a search, and is shown in the opening net
Page, wherein, the oriented engine that specifies search for of the linking element band initiates searching request according to the web page contents keyword of matching
Link information.
A2, the method according to A1, wherein, the key word information includes:
Search the context string that the web page contents keyword whether there is in the opening webpage;And
Indicate the positional information of web page contents keyword position in the context string.
A3, the method according to A2, wherein, indicate web page contents keyword position in the context string
Positional information, including:
Start bit and the web page contents keyword of the web page contents keyword in the context string
Character length.
A4, the method according to A1 to any one of A3, wherein, it is described to send to the webpage of the server of the browser
URL species includes:
According to the configuration information of browser side, the webpage URL of the regular expression for meeting webpage URL of generation, wherein, institute
State configuration information and the browser is issued to by the server;Or
Meet the webpage URL of searching request formula.
A5, the method according to A1 to any one of A4, wherein, according to the key word information in the opening webpage
The web page contents keyword of matching is found, including:
The document dbject model dom tree of the opening webpage is traveled through;
Obtain web page contents corresponding with the key word information;
The corresponding DOM node of web page contents keyword of matching is found in the web page contents, and is locked.
A6, the method according to A1 to any one of A5, wherein, the hyperlink request of the linking element of the search is by institute
Server side return is stated, or, by the browser lateral root according to the web page contents keyword and for specifying search for engine life
Into.
A7, the method according to A1 to any one of A6, wherein, the web page contents keyword of the matching is converted into one
After the linking element of search, in addition to:
The linking element generation DOM node translated into, is inserted into former webpage dom tree;Or
The former DOM node for changing the web page contents keyword is the DOM node for the linking element generation being converted into.
A8, the method according to A1 to any one of A7, wherein, the web page contents keyword of the matching is converted into one
The linking element of search, including:
Obtain using the web page contents keyword as keyword and set up the URL associated with specifying search for engine;
In the HTML HTML code of the opening webpage, it will be built described in acquisition with specifying search for engine
The URL of vertical association is added to the code position of the web page contents keyword.
A9, the method according to A8, wherein, the URL associated described in acquisition with specifying search for engine to set up is added
To the code position of the web page contents keyword, including:
Described in acquisition the code that the URL associated is added to the web page contents keyword will be set up with specifying search for engine
Before or after position.
A10, the method according to A1 to any one of A9, wherein, the web page contents keyword of the matching is converted into
The linking element of one search, and the opening webpage is shown in, including:
Linking element after conversion is included on the opening webpage with highlighted font;Or
Linking element after conversion is included on the opening webpage with the font size different from webpage other fonts.
The device of webpage is shown in B11, a kind of browser, including:
Sending module, is configured to open webpage in a browser, and the uniform resource position mark URL of the opening webpage is sent out
Deliver to the server of the browser;
Receiving module, is configured to receive the key word information corresponding to the URL that the server of the browser is returned;
Searching modul, is configured to find the web page contents of matching in the opening webpage according to the key word information
Keyword;
Modular converter, is configured to the web page contents keyword of the matching being converted into the linking element of a search, and
The opening webpage is shown in, wherein, the oriented web page contents key for specifying search for engine according to matching of the linking element band
Word initiates the link information of searching request.
B12, the device according to B11, wherein, the key word information includes:
Search the context string that the web page contents keyword whether there is in the opening webpage;And
Indicate the positional information of web page contents keyword position in the context string.
B13, the device according to B12, wherein, indicate the web page contents keyword in the context string middle position
The positional information put, including:
Start bit and the web page contents keyword of the web page contents keyword in the context string
Character length.
B14, the device according to B11 to any one of B13, wherein, it is described to send to the server of the browser
Webpage URL species includes:
According to the configuration information of browser side, the webpage URL of the regular expression for meeting webpage URL of generation, wherein, institute
State configuration information and the browser is issued to by the server;Or
Meet the webpage URL of searching request formula.
B15, the device according to B11 to any one of B14, wherein, the searching modul is additionally configured to:
The document dbject model dom tree of the opening webpage is traveled through;
Obtain web page contents corresponding with the key word information;
The corresponding DOM node of web page contents keyword of matching is found in the web page contents, and is locked.
B16, the device according to B11 to any one of B15, wherein, the hyperlink request of the linking element of the search
Returned by the server side, or, by the browser lateral root according to the web page contents keyword and for specifying search for drawing
Hold up generation.
B17, the device according to B11 to any one of B16, wherein, in addition to:
Processing module, is configured to that the web page contents keyword of the matching is converted into search use in the modular converter
Linking element after, the linking element that translates into generation DOM node is inserted into former webpage dom tree;Or, modification
The former DOM node of the web page contents keyword is the DOM node for the linking element generation being converted into.
B18, the device according to B11 to any one of B17, wherein, the modular converter is additionally configured to:
Obtain using the web page contents keyword as keyword and set up the URL associated with specifying search for engine;
In the HTML HTML code of the opening webpage, it will be built described in acquisition with specifying search for engine
The URL of vertical association is added to the code position of the web page contents keyword.
B19, the device according to B18, wherein, the modular converter is additionally configured to:
Described in acquisition the code that the URL associated is added to the web page contents keyword will be set up with specifying search for engine
Before or after position.
B20, the device according to B11 to any one of B19, wherein, the modular converter is additionally configured to:
Linking element after conversion is included on the opening webpage with highlighted font;Or
Linking element after conversion is included on the opening webpage with the font size different from webpage other fonts.