CN105183890B - Browser-based web page loading method and browser device - Google Patents
Browser-based web page loading method and browser device Download PDFInfo
- Publication number
- CN105183890B CN105183890B CN201510629621.0A CN201510629621A CN105183890B CN 105183890 B CN105183890 B CN 105183890B CN 201510629621 A CN201510629621 A CN 201510629621A CN 105183890 B CN105183890 B CN 105183890B
- Authority
- CN
- China
- Prior art keywords
- page
- windows
- window
- loading
- preview
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000011068 loading method Methods 0.000 title claims abstract description 109
- 238000000034 method Methods 0.000 claims abstract description 46
- 238000010586 diagram Methods 0.000 description 6
- 238000004590 computer program Methods 0.000 description 2
- 238000000429 assembly Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9577—Optimising the visualization of content, e.g. distillation of HTML documents
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
技术领域technical field
本发明涉及互联网技术领域,具体涉及一种基于浏览器的网页加载方法和一种浏览器装置。The present invention relates to the field of Internet technologies, in particular to a browser-based web page loading method and a browser device.
背景技术Background technique
浏览器是指可以显示网页服务器或者文件系统的HTML文件(标准通用标记语言的一个应用)内容,并让用户与网页服务器或者HTML文件进行交互的一种软件。浏览器在日常生活中被广泛应用,用户通过浏览器可以搜索信息、浏览网页、观看视频、阅读新闻、查看图片等等。A browser refers to a software that can display the content of an HTML file (an application of the standard general markup language) of a web server or a file system, and allow users to interact with the web server or the HTML file. Browsers are widely used in daily life. Users can search for information, browse web pages, watch videos, read news, view pictures and so on through browsers.
然而,目前用户通过浏览器浏览的网页页面都是按照网站服务器方定义的样式进行展现,展现形式固定,缺乏对网页页面的统一管理。However, at present, the web pages browsed by the user through the browser are displayed according to the style defined by the website server side, the presentation form is fixed, and the unified management of the web pages is lacking.
发明内容SUMMARY OF THE INVENTION
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的一种基于浏览器的网页加载方法和一种浏览器装置。In view of the above problems, the present invention is proposed to provide a browser-based web page loading method and a browser device that overcome the above problems or at least partially solve the above problems.
依据本发明的一个方面,提供了一种基于浏览器的网页加载方法,包括:According to one aspect of the present invention, a browser-based web page loading method is provided, comprising:
在浏览器的当前标签页中加载至少两个窗口;Load at least two windows in the current tab of the browser;
通过所述至少两个窗口中的其中一个窗口加载主页面;其中,所述主页面包括:根据所述标签页对应的统一资源定位符确定的页面;以及,Load the main page through one of the at least two windows; wherein, the main page includes: a page determined according to the uniform resource locator corresponding to the tab page; and,
通过所述至少两个窗口中除所述其中一个窗口外的其他窗口加载预览页面;其中,所述预览页面包括:根据所述主页面中的统一资源定位符确定的页面。The preview page is loaded through other windows except the one of the at least two windows; wherein, the preview page includes: a page determined according to the uniform resource locator in the main page.
依据本发明的另一个方面,还提供了一种浏览器装置,包括:According to another aspect of the present invention, a browser device is also provided, comprising:
窗口加载模块,用于在浏览器的当前标签页中加载至少两个窗口;The window loading module is used to load at least two windows in the current tab of the browser;
主页面加载模块,用于通过所述至少两个窗口中的其中一个窗口加载主页面;其中,所述主页面包括:根据所述标签页对应的统一资源定位符确定的页面;a main page loading module, configured to load a main page through one of the at least two windows; wherein, the main page includes: a page determined according to a uniform resource locator corresponding to the tab page;
预览页面加载模块,用于通过所述至少两个窗口中除所述其中一个窗口外的其他窗口加载预览页面;其中,所述预览页面包括:根据所述主页面中的统一资源定位符确定的页面。A preview page loading module, configured to load a preview page through other windows except the one of the at least two windows; wherein, the preview page includes: determined according to the uniform resource locator in the main page page.
本发明实施例公开的一种基于浏览器的网页加载方案,可以在浏览器的当前标签页中加载至少两个窗口;通过所述至少两个窗口中的其中一个窗口加载主页面;其中,所述主页面包括:根据所述标签页对应的统一资源定位符确定的页面;以及,通过所述至少两个窗口中除所述其中一个窗口外的其他窗口加载预览页面;其中,所述预览页面包括:根据所述主页面中的统一资源定位符确定的页面。可见,在本发明实施例中,可以基于浏览器对不同的网页页面进行统一的管理和展现,用户可以定制个性化的展现方式。进一步地,可以在一个标签页中展现多个网页页面内容,避免了通过切换标签页来浏览不同的网页页面,节约了时间,提高了浏览效率,便于用户快速确定并获取自己需要的页面信息,提高了用户体验。A browser-based webpage loading solution disclosed in the embodiment of the present invention can load at least two windows in the current tab page of the browser; load the main page through one of the at least two windows; wherein, the The main page includes: a page determined according to the uniform resource locator corresponding to the tab page; and loading a preview page through other windows except the one of the at least two windows; wherein, the preview page Including: the page determined according to the uniform resource locator in the main page. It can be seen that, in the embodiment of the present invention, different web pages can be managed and displayed uniformly based on the browser, and the user can customize a personalized display manner. Further, the content of multiple web pages can be displayed in one tab, avoiding browsing different web pages by switching tabs, saving time, improving browsing efficiency, and facilitating users to quickly determine and obtain the page information they need, Improved user experience.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solutions of the present invention, in order to be able to understand the technical means of the present invention more clearly, it can be implemented according to the content of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand , the following specific embodiments of the present invention are given.
附图说明Description of drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are for the purpose of illustrating preferred embodiments only and are not to be considered limiting of the invention. Also, the same components are denoted by the same reference numerals throughout the drawings. In the attached image:
图1是本发明实施例一中一种基于浏览器的网页加载方法的步骤流程图;1 is a flow chart of steps of a browser-based web page loading method in Embodiment 1 of the present invention;
图2是本发明实施例二中一种基于浏览器的网页加载方法的步骤流程图;2 is a flow chart of steps of a browser-based web page loading method in Embodiment 2 of the present invention;
图3是本发明实施例三中一种搜索结果页面的分屏显示的示意图;3 is a schematic diagram of a split-screen display of a search result page in Embodiment 3 of the present invention;
图4是本发明实施例四中一种搜索结果页面的分屏显示的步骤流程图;4 is a flow chart of steps for split-screen display of a search result page in Embodiment 4 of the present invention;
图5是本发明实施例四中一种浏览器装置的结构框图;5 is a structural block diagram of a browser device in Embodiment 4 of the present invention;
图6是本发明实施例五中一种浏览器装置的结构框图。FIG. 6 is a structural block diagram of a browser device in Embodiment 5 of the present invention.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that the present disclosure will be more thoroughly understood, and will fully convey the scope of the present disclosure to those skilled in the art.
实施例一Example 1
参照图1,示出了本发明实施例一中一种基于浏览器的网页加载方法的步骤流程图。在本实施例中,所述基于浏览器的网页加载方法可以包括:Referring to FIG. 1 , a flowchart of steps of a browser-based webpage loading method in Embodiment 1 of the present invention is shown. In this embodiment, the browser-based web page loading method may include:
步骤102,在浏览器的当前标签页中加载至少两个窗口。Step 102: Load at least two windows in the current tab page of the browser.
在本实施例中,窗口主要可以是指用于加载网页页面的网页窗口。一般地,一个标签页对应加载一个窗口,在本实施例中,可以在标签页中加载至少两个窗口。In this embodiment, the window may mainly refer to a webpage window used for loading webpage pages. Generally, one tab page corresponds to loading one window. In this embodiment, at least two windows may be loaded in the tab page.
步骤104,通过所述至少两个窗口中的其中一个窗口加载主页面。Step 104: Load the main page through one of the at least two windows.
在本实施例中,可以从所述至少两个窗口中任意选择一个作为主页面的加载窗口。其中,所述主页面包括:根据所述标签页对应的统一资源定位符确定的页面。也即,所述主页面可以是根据所述标签页对应的地址栏中的统一资源定位符url(Uniform ResourceLocator)确定的页面。In this embodiment, one of the at least two windows may be arbitrarily selected as the loading window of the main page. Wherein, the main page includes: a page determined according to the uniform resource locator corresponding to the tab page. That is, the home page may be a page determined according to the Uniform Resource Locator (URL) in the address bar corresponding to the tab page.
步骤106,通过所述至少两个窗口中除所述其中一个窗口外的其他窗口加载预览页面。Step 106: Load the preview page through other windows except the one of the at least two windows.
在本实施例中,可以在除所述选择的用作加载主页面的窗口之外的其他窗口中加载一个或多个预览页面,例如,当有两个预览页面时,则可以通过两个所述的其他窗口分别去加载,也即,预览页面的数量与所述的其他窗口的数量可以相同。当然,本领域技术人员应当明了的是,由于浏览器窗口界面的限制,其他窗口的数量不可能随预览页面数量的增加无限增加,也可以按照一定的更新规则,通过所述其他窗口对多个预览页面进行更新展示,如,按照设定周期显示预览页面,其中,每次显示的预览页面数量可以根据所述的其他窗口的数量确定。In this embodiment, one or more preview pages may be loaded in other windows than the selected window used for loading the main page. For example, when there are two preview pages, the two The other windows are loaded separately, that is, the number of preview pages and the number of other windows may be the same. Of course, those skilled in the art should understand that, due to the limitation of the browser window interface, the number of other windows cannot be infinitely increased with the increase of the number of preview pages. The preview page is updated and displayed, for example, the preview page is displayed according to a set period, wherein the number of preview pages displayed each time can be determined according to the number of the other windows.
在本实施例中,所述预览页面可以包括:根据所述主页面中的统一资源定位符确定的页面。由前所述,所述主页面可以是根据所述标签页对应的地址栏中的统一资源定位符url确定的页面,在主页面中至少可以包括多个内嵌的链接地址,也即,所述主页面中至少包括一个或多个url,所述预览页面可以是根据所述主页面中包括的一个或多个url确定的页面。In this embodiment, the preview page may include: a page determined according to a uniform resource locator in the main page. As mentioned above, the home page may be a page determined according to the uniform resource locator url in the address bar corresponding to the tab page, and the home page may at least include multiple embedded link addresses, that is, all The main page includes at least one or more urls, and the preview page may be a page determined according to the one or more urls included in the main page.
需要说明的,本实施例所述的基于浏览器的网页加载方法可以是基于浏览器的内核、由浏览器本身来实现的。与现有技术不同的是,在现有技术中,网页页面的展现形式是由网站服务器方定义(编译)好的,并按照网站服务器方预先定义的样式渲染并展现给用户,而本实施例所述的网页加载方法,网页页面在加载显示时,其展现形式不依赖网站服务器放定义的展现形式(样式),而是通过浏览器对其进行处理:在一个标签页中加载至少两个窗口,并通过所述至少两个窗口来加载显示页面,具有普遍的适用性。It should be noted that the browser-based webpage loading method described in this embodiment may be implemented by the browser itself based on the kernel of the browser. Different from the prior art, in the prior art, the presentation form of the web page is defined (compiled) by the website server, and is rendered and displayed to the user according to the style pre-defined by the website server. In the web page loading method, when the web page is loaded and displayed, its presentation form does not depend on the presentation form (style) defined by the website server, but is processed by the browser: at least two windows are loaded in one tab page. , and the display page is loaded through the at least two windows, which has universal applicability.
综上所述,本实施例所述的一种基于浏览器的网页加载方法,可以在浏览器的当前标签页中加载至少两个窗口;通过所述至少两个窗口中的其中一个窗口加载主页面;其中,所述主页面包括:根据所述标签页对应的统一资源定位符确定的页面;以及,通过所述至少两个窗口中除所述其中一个窗口外的其他窗口加载预览页面;其中,所述预览页面包括:根据所述主页面中的统一资源定位符确定的页面。可见,在本实施例中,可以基于浏览器对不同的网页页面进行统一的管理和展现,用户可以定制个性化的展现方式。进一步地,可以在一个标签页中展现多个网页页面内容,避免了通过切换标签页来浏览不同的网页页面,节约了时间,提高了浏览效率,便于用户快速确定并获取自己需要的页面信息,提高了用户体验。To sum up, the browser-based web page loading method described in this embodiment can load at least two windows in the current tab page of the browser; load the home page through one of the at least two windows wherein, the main page includes: a page determined according to the uniform resource locator corresponding to the tab page; and loading a preview page through other windows except the one of the at least two windows; wherein , the preview page includes: a page determined according to the uniform resource locator in the main page. It can be seen that, in this embodiment, different web pages can be managed and displayed uniformly based on the browser, and the user can customize a personalized display manner. Further, the content of multiple web pages can be displayed in one tab, avoiding browsing different web pages by switching tabs, saving time, improving browsing efficiency, and facilitating users to quickly determine and obtain the page information they need, Improved user experience.
实施例二Embodiment 2
参照图2,示出了本发明实施例二中一种基于浏览器的网页加载方法的步骤流程图。其中,本实施例所述的基于浏览器的网页加载方法可以是基于浏览器的内核实现的。Referring to FIG. 2 , a flowchart of steps of a browser-based webpage loading method in Embodiment 2 of the present invention is shown. The browser-based webpage loading method described in this embodiment may be implemented based on the kernel of the browser.
在本实施例中,所述基于浏览器的网页加载方法具体可以包括:In this embodiment, the browser-based webpage loading method may specifically include:
一般地,浏览器在接收到用户的请求网页页面的请求信息之后,可以将所述请求信息发送至服务器,服务器根据所述请求信息中携带的url向浏览器返回与所述请求信息中携带的url相匹配的一个网页页面(即,主页面),同时,浏览器可以新建一个标签页,并通过所述标签页中的主页面窗口加载显示服务器返回的主页面,并在所述标签页中显示所述请求信息中携带的url。换而言之,可以理解为:所述请求信息中携带有所述标签页对应的统一资源定位符。Generally, after receiving the request information of the user's requested webpage, the browser can send the request information to the server, and the server returns to the browser according to the url carried in the request information and the information carried in the request information. A web page (that is, the main page) that matches the url, and at the same time, the browser can create a new tab, and load and display the main page returned by the server through the main page window in the tab, and display the main page in the tab. Display the url carried in the request information. In other words, it can be understood that the request information carries the uniform resource locator corresponding to the tab page.
而在本实施例中,优选地,浏览器在接收到由服务器返回的、根据所述请求信息中携带的url确定的主页面之后,可以按照如下步骤流程执行:In this embodiment, preferably, after receiving the main page returned by the server and determined according to the url carried in the request information, the browser can execute the following steps:
步骤202,浏览器接收服务器返回的根据所述请求信息确定的所述主页面。其中,所述请求信息中携带有所述标签页对应的统一资源定位符。
步骤204,浏览器获取并拦截用于加载所述主页面的主页面窗口。
步骤206,浏览器将所述主页面窗口拆分为所述至少两个窗口。
在本实施例中,可以通过任意一种适当的方式获取所述至少两个窗口,将所述主页面窗口进行拆分得到所述至少两个窗口只是获取所述至少两个窗口的多种实现方式中的其中一种可行的实现方案。例如,浏览器还可以直接按照预置的窗口生成规则生成所述至少两个窗口,或者,从预置的用于存储窗口的内存或云端服务器中直接获取已定义(编译)好的窗口。In this embodiment, the at least two windows may be acquired in any appropriate manner, and the at least two windows obtained by splitting the main page window are just multiple implementations of acquiring the at least two windows One of the possible implementations in the way. For example, the browser can also directly generate the at least two windows according to the preset window generation rules, or directly obtain the defined (compiled) windows from the preset memory or cloud server for storing windows.
当然,浏览器是选择常规的加载方式还是选择本实施例所述的加载方式,可以根据用户选择的配置请求确定,例如,浏览器可以提供“分屏显示”选项给用户,若根据用户的配置请求确定“分屏显示”选项关闭时,则可以选择常规的加载方式进行网页页面的加载和显示;若根据用户的配置请求确定“分屏显示”选项开启时,则可以选择本实施例所述的加载方式进行网页页面的加载和显示,执行上述步骤202。Of course, whether the browser selects the conventional loading method or the loading method described in this embodiment may be determined according to the configuration request selected by the user. For example, the browser may provide the user with a "split screen display" option. When it is requested to confirm that the "split screen display" option is turned off, the conventional loading method can be selected to load and display the webpage; Loading and displaying the web page in the loading mode, and performing the
进一步地,即使所述“分屏显示”选项处于开启状态,但是,在本实施例中,浏览器可以但不仅限于对所有网页页面都进行分屏显示,只有对满足规则的网页页面才进行分屏显示,例如,一优选地,浏览器可以先判断所述标签页对应的统一资源定位符是否满足的第一预置规则,若是,则执行上述步骤204,否则,直接采用常规加载方式加载据所述请求信息确定的所述主页面。其中,所述第一预置规则包括但不仅限于:用于指示页面为如下页面中至少一种的设定统一资源定位符:搜索结果页面、新闻页面、论坛页面、贴吧页面、视频页面、音乐页面。Further, even if the "split screen display" option is enabled, in this embodiment, the browser may, but is not limited to, perform split screen display on all webpages, and only split the webpages that meet the rules. screen display, for example, preferably, the browser can first determine whether the uniform resource locator corresponding to the tab page satisfies the first preset rule, if so, execute the
步骤208,浏览器在浏览器的当前标签页中加载至少两个窗口。
在本实施例中,浏览器可以将所述至少两个窗口均加载在同一个标签页中,各个窗口可以分别用于加载不同的页面,实现不同的多个页面在同一标签页中的显示,减少了用户的切换操作。In this embodiment, the browser can load the at least two windows in the same tab page, and each window can be used to load different pages respectively, so as to realize the display of different multiple pages in the same tab page, The switching operation of the user is reduced.
步骤210,浏览器通过所述至少两个窗口中的其中一个窗口加载主页面。
在本实施例中,所述主页面具体可以包括:根据所述标签页对应的统一资源定位符确定的页面。In this embodiment, the main page may specifically include: a page determined according to the uniform resource locator corresponding to the tab page.
步骤212,浏览器通过所述至少两个窗口中除所述其中一个窗口外的其他窗口加载预览页面。其中,所述预览页面具体可以包括:根据所述主页面中的统一资源定位符确定的页面。
在本实施例中,浏览器可以根据默认配置直接在所述其他窗口中加载预览页面。例如,所述主页面是一搜索结果页面,其中包括多个搜索结果(其中,每个搜索结果一般都包含了:搜索结果网页的标题和搜索结果网页的链接,点击所述搜索结果网页的链后可以实现页面的跳转),可以根据所述其他窗口的数量,按所述搜索结果页面中显示的搜索结果的先后顺序依次选取与多个搜索结果,并将选择的搜索结果对应的预览页面分别一一在所述其他窗口进行加载显示。In this embodiment, the browser may directly load the preview page in the other window according to the default configuration. For example, the main page is a search result page, which includes a plurality of search results (wherein, each search result generally includes: the title of the search result webpage and the link of the search result webpage, click on the link of the search result webpage Afterwards, the page jump can be realized), according to the number of the other windows, the search results displayed in the search result page can be selected in turn according to the order of the search results, and the preview page corresponding to the selected search results can be selected. They are loaded and displayed in the other windows one by one.
此外,浏览器也可以根据用户的触发操作来确定预览页面的加载,其中,所述触发操作包括但不仅限于如下操作:点击操作和悬停操作。优选地,所述步骤212在具体实现可以包括如下步骤:In addition, the browser can also determine the loading of the preview page according to the user's trigger operation, wherein the trigger operation includes but is not limited to the following operations: a click operation and a hover operation. Preferably, the specific implementation of
步骤A、浏览器接收针对所述主页面的第一触发操作。Step A: The browser receives a first trigger operation for the main page.
步骤B、浏览器根据所述第一触发操作,确定所述主页面中的第一统一资源定位符。Step B: The browser determines the first uniform resource locator in the home page according to the first trigger operation.
步骤C、浏览器在所述其他窗口中的第一窗口中显示所述第一统一资源定位符对应的第一预览页面。Step C, the browser displays the first preview page corresponding to the first uniform resource locator in the first window among the other windows.
例如,仍以主页面为搜索结果页面为例进行说明,用户点击搜索结果页面中的其中一个搜索结果(如,搜索结果A)后,浏览器接收针对所述搜索结果A的点击操作,并根据所述针对搜索结果A的点击操作确定所述搜索结果A对应的urlA,最后,从所述其他窗口中选择任意一个适当的窗口(如,窗口A)加载显示所述urlA对应的网页页面,其中,所述urlA对应的网页页面也即所述的第一预览页面。For example, still taking the main page as the search result page as an example, after the user clicks one of the search results (for example, search result A) in the search result page, the browser receives the click operation on the search result A, and according to The click operation on the search result A determines the urlA corresponding to the search result A, and finally, selects any appropriate window (eg, window A) from the other windows to load and display the web page corresponding to the urlA, wherein , the web page corresponding to the urlA is also the first preview page.
这里需要说明的是,若所述其他窗口的数量为一个时,即,只有一个窗口A时,当浏览器再次接收到用户的触发操作后,则可以对所述窗口A进行更新,以用于显示根据用户再次触发操作确定的网页页面,具体地,上述步骤212还可以包括如下步骤:浏览器接收针对所述主页面的第二触发操作;根据所述第二触发操作,确定所述主页面中的第二统一资源定位符;根据所述第二统一资源定位符更新所述第一窗口,在所述第一窗口中显示所述第二统一资源定位符对应的第二预览页面。如,用户再次点击搜索结果页面中搜索结果(如,搜索结果B)时,浏览器接收针对所述搜索结果B的点击操作,并根据所述针对搜索结果B的点击操作确定所述搜索结果B对应的urlB,最后,根据所述窗口A,以在所述窗口A中加载显示所述urlB对应的网页页面,其中,所述urlB对应的网页页面也即所述的第二预览页面。It should be noted here that if the number of the other windows is one, that is, when there is only one window A, after the browser receives the user's triggering operation again, the window A can be updated to be used for Display the web page determined according to the user's re-triggering operation. Specifically, the
当然,若所述其他窗口为多个时,所述第二预览页面除了可以通过所述窗口A加载显示外,也可也选择除所述其他窗口中除所述窗口A外的窗口加载显示所述第二预览页面。Of course, if there are multiple other windows, in addition to the second preview page being loaded and displayed through the window A, a window other than the window A among the other windows may also be selected to be loaded and displayed. the second preview page.
在本实施例的一优选实施例中,为了保证预览页面的加载与用户的实际需求(意愿)相匹配,则在预览页面加载之前,可以先对用户的触发操作进行一个判断,根据判断结果确定是否在所述其他窗口中加载所述预览页面:In a preferred embodiment of this embodiment, in order to ensure that the loading of the preview page matches the actual needs (will) of the user, before the preview page is loaded, a judgment may be made on the triggering operation of the user, and a judgment may be made according to the judgment result. Whether to load the preview page in the other window:
浏览器判断所述第一触发操作是否满足第二预置规则,若不满足,则执行上述步骤212;若满足,则可以按照常规流程加载显示页面,如,在新建的标签页中进行页面的加载和显示。The browser determines whether the first trigger operation satisfies the second preset rule, and if not, executes the
其中,满足第二预置规则的触发操作可以包括但不仅限于如下操作:右键点击选择“在新标签页中打开网页页面”的第一操作、右键点击选择“在新的浏览器窗口中打开网页页面”的第二操作、将搜索结果页面中的搜索结果拖拽至新标签页中进行打开的拖拽操作和右键选择打开“blank”页的第三操作等,换而言之,也即当用户的第一触发操作是明确用于指示在新标签页或新浏览器窗口中打开网页页面的操作时,则根据用户的触发操作执行常规流程,当用户的第一触发操作不满足所述第二预置规则(如,明确用于指示在新标签页或新浏览器窗口中打开网页页面的操作)时,则可以在所述其他窗口中加载显示所述预览页面。Wherein, the triggering operation that satisfies the second preset rule may include but is not limited to the following operations: right-click to select the first operation of "open a webpage in a new tab", right-click to select "open a webpage in a new browser window" The second operation of "page", the drag operation of dragging and dropping the search results in the search result page to the new tab page, and the third operation of right-clicking to open the "blank" page, etc., in other words, that is, when When the user's first trigger operation is an operation that is explicitly used to instruct to open a web page in a new tab or a new browser window, the normal process is performed according to the user's trigger operation, and when the user's first trigger operation does not satisfy the first trigger operation of the user. When two preset rules (for example, are explicitly used to indicate an operation of opening a webpage in a new tab or a new browser window), the preview page can be loaded and displayed in the other window.
在本实施例的一优选方案中,在所述至少两个窗口加载之后,浏览器可以建立并保存所述当前标签页、所述其中一个窗口、和所述其他窗口三者之间的绑定关系。In a preferred solution of this embodiment, after the at least two windows are loaded, the browser may establish and save the binding between the current tab page, the one of the windows, and the other windows relation.
用户在使用浏览器进行页面浏览器时,经常会进行标签页之间的切换,当从其他标签页切换回所述当前标签页时,则可以根据保存的所述当前标签页、所述其中一个窗口、和所述其他窗口三者之间的绑定关系,之间完成所述当前标签页对应的窗口的调用和加载。When a user uses a browser to perform a page browser, he often switches between tabs. When switching back to the current tab from other tabs, he can The binding relationship between the window and the other windows completes the calling and loading of the window corresponding to the current tab page.
在本实施例的另一优选方案中,当用户通过预览页面确定希望打开的网页页面(如,希望打开的搜索结果对应的网页页面)时,可以通过如下方式实现预览页面的重新加载:浏览器接收针对所述其他窗口的发送操作请求,将所述其他窗口中加载的预览页面发送至新建标签页中进行加载。In another preferred solution of this embodiment, when the user determines the webpage he wishes to open (for example, the webpage corresponding to the search result he wishes to open) through the preview page, the preview page can be reloaded in the following way: A sending operation request for the other window is received, and the preview page loaded in the other window is sent to a new tab page for loading.
综上所述,本实施例所述的一种基于浏览器的网页加载方法,可以在浏览器的当前标签页中加载至少两个窗口;通过所述至少两个窗口中的其中一个窗口加载主页面;其中,所述主页面包括:根据所述标签页对应的统一资源定位符确定的页面;以及,通过所述至少两个窗口中除所述其中一个窗口外的其他窗口加载预览页面;其中,所述预览页面包括:根据所述主页面中的统一资源定位符确定的页面。可见,在本实施例中,可以基于浏览器对不同的网页页面进行统一的管理和展现,用户可以定制个性化的展现方式。进一步地,可以在一个标签页中展现多个网页页面内容,避免了通过切换标签页来浏览不同的网页页面,节约了时间,提高了浏览效率,便于用户快速确定并获取自己需要的页面信息,提高了用户体验。To sum up, the browser-based web page loading method described in this embodiment can load at least two windows in the current tab page of the browser; load the home page through one of the at least two windows wherein, the main page includes: a page determined according to the uniform resource locator corresponding to the tab page; and loading a preview page through other windows except the one of the at least two windows; wherein , the preview page includes: a page determined according to the uniform resource locator in the main page. It can be seen that, in this embodiment, different web pages can be managed and displayed uniformly based on the browser, and the user can customize a personalized display manner. Further, the content of multiple web pages can be displayed in one tab, avoiding browsing different web pages by switching tabs, saving time, improving browsing efficiency, and facilitating users to quickly determine and obtain the page information they need, Improved user experience.
实施例三Embodiment 3
基于上述实施例,本实施例以搜索结果页面的分屏显示的步骤流程为例进行说明,在不矛盾的情况下,该方法可以和上述实施例中的方法相结合。下面对本实施例所述的方法进行具体说明。Based on the above-mentioned embodiment, this embodiment takes the step flow of split-screen display of the search result page as an example for description. If there is no contradiction, this method may be combined with the method in the above-mentioned embodiment. The method described in this embodiment will be specifically described below.
参照图3,示出了本发明实施例三中一种搜索结果页面的分屏显示的示意图。在本实施例中,所述搜索结果页面可以是请求信息所请求加载的主页面,如,搜索结果页面A是用户通过搜索引擎搜索搜索词A确定的页面。需要说明的是,所述搜索结果页面A对应的url满足上述第一预置规则,且浏览器的默认配置为:“分屏显示”选项开启。Referring to FIG. 3 , a schematic diagram of a split-screen display of a search result page in Embodiment 3 of the present invention is shown. In this embodiment, the search result page may be the main page requested to be loaded by the requesting information. For example, the search result page A is a page determined by the user searching for the search term A through a search engine. It should be noted that the url corresponding to the search result page A satisfies the above-mentioned first preset rule, and the default configuration of the browser is that the "split screen display" option is enabled.
进一步地,如图3所示,所述搜索结果页面A中包括多个搜索结果:搜索结果1、搜索结果2、搜索结果3和搜索结果4等,不一一列举。本领域技术人员应当明了的是,所述搜索结果页面A中的各个搜索结果都包括:搜索结果网页的标题和搜索结果网页的链接。Further, as shown in FIG. 3 , the search result page A includes multiple search results: search result 1, search result 2, search result 3, and search result 4, etc., which are not listed one by one. Those skilled in the art should understand that each search result in the search result page A includes: the title of the search result web page and the link of the search result web page.
优选地,在本实施例中,以两个窗口(窗口1和窗口2)为例进行说明,其中,所述窗口1和窗口2都加载在当前标签页,标签页2中。所述搜索结果页面A在所述窗口1中进行加载显示,各个搜索结果对应的预览页面则在窗口2中进行加载显示,当然,搜索结果页面A和预览页面也可以互换窗口进行加载显示,所述窗口1和所述窗口2之间的相对位置也不仅限于如图3所示的“左右”布局,如,也可以采用“上下”布局等其他任意一种适当的布局形式。Preferably, in this embodiment, two windows (window 1 and window 2) are taken as an example for description, wherein both the window 1 and the window 2 are loaded in the current tab page, tab page 2. The search result page A is loaded and displayed in the window 1, and the preview page corresponding to each search result is loaded and displayed in the window 2. Of course, the search result page A and the preview page can also be loaded and displayed in interchangeable windows. The relative position between the window 1 and the window 2 is not limited to the "left and right" layout as shown in Fig. 3, for example, any other suitable layout form such as the "up and down" layout can also be used.
参照图4,示出了本发明实施例四中一种搜索结果页面的分屏显示的步骤流程图。在本实施例中,所述搜索结果页面的分屏显示的步骤流程具体可以包括如下步骤:Referring to FIG. 4 , a flowchart of steps for split-screen display of a search result page in Embodiment 4 of the present invention is shown. In this embodiment, the step flow of the split-screen display of the search result page may specifically include the following steps:
步骤402,浏览器接收用户输入的搜索词,生成携带所述搜索词的搜索请求,将所述搜索请求发送至服务器。Step 402: The browser receives the search term input by the user, generates a search request carrying the search term, and sends the search request to the server.
步骤404,浏览器接收服务器返回的根据所述搜索请求确定的搜索结果页面。
在本实施例中,以搜索结果页面A为例,所述搜索结果页面A中携带有所述搜索结果页面A对应的urlA。In this embodiment, taking the search result page A as an example, the search result page A carries the urlA corresponding to the search result page A.
步骤406,浏览器新建标签页2,并在标签页2中加载窗口1和窗口2。
在本实施例中,新建的标签页2对应的地址栏中显示的地址为所述urlA。In this embodiment, the address displayed in the address bar corresponding to the newly created tab page 2 is the urlA.
步骤408,浏览器将所述搜索结果页面A渲染后在所述窗口1中进行加载显示。
步骤410,浏览器接收针对所述搜索结果页面A中的搜索结果1的触发操作,并在窗口2中显示所述搜索结果1对应的预览页面1。
在本实施例中,如前所述,搜索结果1中对应携带有其对应的网页地址url1。当浏览器确定针对所述搜索结果1的触发操作不是用于指示在新标签页或新浏览器窗口的操作时,则可以进行分屏显示,也即,在所述窗口2中加载显示所述url1对应的页面,也即,预览页面1。In this embodiment, as described above, the search result 1 carries its corresponding web page address url1 correspondingly. When the browser determines that the trigger operation for the search result 1 is not used to indicate an operation on a new tab page or a new browser window, it can perform split-screen display, that is, load and display the search result in the window 2 The page corresponding to url1, that is, the preview page 1.
当然,本领域技术人员应当明了的是,当浏览器接收到用户针对其他搜索结果(如,搜索结果2)的触发操作后,可以参照上述步骤410的执行过程,将根据搜索结果2对应的url2确定的预览页面2加载显示在所述窗口2中,以更新之前加载的预览页面1。Of course, those skilled in the art should understand that when the browser receives the triggering operation of the user for other search results (eg, search result 2), it can refer to the execution process of the
此外,浏览器还可以建立并保存标签页2、窗口1和窗口2三者之间的绑定关系,如图3所示,当从标签页1切换回标签页2时,可以直接根据所述保存的绑定关系,调用窗口1和窗口2加载在所述标签页2中,节约了时间,提高了加载效率。In addition, the browser can also establish and save the binding relationship between Tab 2, Window 1 and Window 2. As shown in Figure 3, when switching from Tab 1 to Tab 2, it can directly The saved binding relationship is called to load the window 1 and the window 2 in the tab page 2, which saves time and improves the loading efficiency.
综上所述,本实施例所述的一种基于浏览器的网页加载方法,在浏览器的当前标签页中加载至少两个窗口;通过所述至少两个窗口中的其中一个窗口加载主页面;其中,所述主页面包括:根据所述标签页对应的统一资源定位符确定的页面;以及,通过所述至少两个窗口中除所述其中一个窗口外的其他窗口加载预览页面;其中,所述预览页面包括:根据所述主页面中的统一资源定位符确定的页面。可见,在本实施例中,可以基于浏览器对不同的网页页面进行统一的管理和展现,用户可以定制个性化的展现方式。进一步地,可以在一个标签页中展现多个网页页面内容,避免了通过切换标签页来浏览不同的网页页面,节约了时间,提高了浏览效率,便于用户快速确定并获取自己需要的页面信息,提高了用户体验。To sum up, in the browser-based webpage loading method described in this embodiment, at least two windows are loaded in the current tab page of the browser; the main page is loaded through one of the at least two windows. ; wherein, the main page includes: a page determined according to the uniform resource locator corresponding to the tab page; and, loading a preview page through other windows except the one of the at least two windows; wherein, The preview page includes: a page determined according to a uniform resource locator in the main page. It can be seen that, in this embodiment, different web pages can be managed and displayed uniformly based on the browser, and the user can customize a personalized display manner. Further, the content of multiple web pages can be displayed in one tab, avoiding browsing different web pages by switching tabs, saving time, improving browsing efficiency, and facilitating users to quickly determine and obtain the page information they need, Improved user experience.
需要说明的是,对于前述的方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明所必需的。It should be noted that, for the purpose of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because Certain steps may be performed in other orders or simultaneously in accordance with the present invention. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the present invention.
实施例四Embodiment 4
基于与上述方法实施例同一发明构思。参照图5,示出了本发明实施例四中一种浏览器装置的结构框图。在本实施例中,所述浏览器装置可以包括:Based on the same inventive concept as the above method embodiments. Referring to FIG. 5 , a structural block diagram of a browser device in Embodiment 4 of the present invention is shown. In this embodiment, the browser device may include:
窗口加载模块502,用于在浏览器的当前标签页中加载至少两个窗口。The window loading module 502 is configured to load at least two windows in the current tab page of the browser.
主页面加载模块504,用于通过所述至少两个窗口中的其中一个窗口加载主页面。The main page loading module 504 is configured to load the main page through one of the at least two windows.
在本实施例中,所述主页面包括:根据所述标签页对应的统一资源定位符确定的页面。In this embodiment, the main page includes: a page determined according to the uniform resource locator corresponding to the tab page.
预览页面加载模块506,用于通过所述至少两个窗口中除所述其中一个窗口外的其他窗口加载预览页面。The preview page loading module 506 is configured to load the preview page through other windows except the one of the at least two windows.
在本实施例中,所述预览页面包括:根据所述主页面中的统一资源定位符确定的页面。In this embodiment, the preview page includes: a page determined according to a uniform resource locator in the main page.
综上所述,本实施例所述的浏览器装置,可以在浏览器的当前标签页中加载至少两个窗口;通过所述至少两个窗口中的其中一个窗口加载主页面;其中,所述主页面包括:根据所述标签页对应的统一资源定位符确定的页面;以及,通过所述至少两个窗口中除所述其中一个窗口外的其他窗口加载预览页面;其中,所述预览页面包括:根据所述主页面中的统一资源定位符确定的页面。可见,在本实施例中,可以基于浏览器对不同的网页页面进行统一的管理和展现,用户可以定制个性化的展现方式。进一步地,可以在一个标签页中展现多个网页页面内容,避免了通过切换标签页来浏览不同的网页页面,节约了时间,提高了浏览效率,便于用户快速确定并获取自己需要的页面信息,提高了用户体验。To sum up, the browser device according to this embodiment can load at least two windows in the current tab page of the browser; load the main page through one of the at least two windows; wherein, the The main page includes: a page determined according to the uniform resource locator corresponding to the tab page; and loading a preview page through other windows except the one of the at least two windows; wherein, the preview page includes : The page determined according to the uniform resource locator in the main page. It can be seen that, in this embodiment, different web pages can be managed and displayed uniformly based on the browser, and the user can customize a personalized display manner. Further, the content of multiple web pages can be displayed in one tab, avoiding browsing different web pages by switching tabs, saving time, improving browsing efficiency, and facilitating users to quickly determine and obtain the page information they need, Improved user experience.
实施例五Embodiment 5
参照图6,示出了本发明实施例五中一种浏览器装置的结构框图。在本实施例中,所述浏览器装置可以包括:Referring to FIG. 6 , a structural block diagram of a browser device in Embodiment 5 of the present invention is shown. In this embodiment, the browser device may include:
窗口加载模块602,用于在浏览器的当前标签页中加载至少两个窗口。The window loading module 602 is configured to load at least two windows in the current tab page of the browser.
主页面加载模块604,用于通过所述至少两个窗口中的其中一个窗口加载主页面。The main page loading module 604 is configured to load the main page through one of the at least two windows.
在本实施例中,所述主页面包括:根据所述标签页对应的统一资源定位符确定的页面。In this embodiment, the main page includes: a page determined according to the uniform resource locator corresponding to the tab page.
预览页面加载模块606,用于通过所述至少两个窗口中除所述其中一个窗口外的其他窗口加载预览页面。The preview page loading module 606 is configured to load the preview page through other windows except the one of the at least two windows.
在本实施例中,所述预览页面包括:根据所述主页面中的统一资源定位符确定的页面。In this embodiment, the preview page includes: a page determined according to a uniform resource locator in the main page.
优选地,所述预览页面加载模块606具体可以包括:Preferably, the preview page loading module 606 may specifically include:
第一接收模块6062,用于接收针对所述主页面的第一触发操作。The first receiving module 6062 is configured to receive a first trigger operation for the home page.
第一url确定模块6064,用于根据所述第一触发操作,确定所述主页面中的第一统一资源定位符。The first url determination module 6064 is configured to determine the first uniform resource locator in the home page according to the first trigger operation.
第一显示模块6066,用于在所述其他窗口中的第一窗口中显示所述第一统一资源定位符对应的第一预览页面。The first display module 6066 is configured to display the first preview page corresponding to the first uniform resource locator in the first window among the other windows.
需要说明的是,为了满足用户需求,避免错误加载,保证用户体验,可以在所述第一显示模块6066执行之前,通过如下模块确定是否需要执行所述第一显示模块6066:第二判断模块,用于在所述第一显示模块6066在所述其他窗口中的第一窗口中显示所述第一统一资源定位符对应的第一预览页面之前,判断所述第一触发操作是否满足第二预置规则,若不满足,则执行所述第一显示模块6066;其中,所述第二预置规则用于指示在新标签页中打开网页页面。It should be noted that, in order to meet user requirements, avoid erroneous loading, and ensure user experience, before the first display module 6066 is executed, the following modules may be used to determine whether the first display module 6066 needs to be executed: a second judgment module, Used to determine whether the first trigger operation satisfies the second preview before the first display module 6066 displays the first preview page corresponding to the first uniform resource locator in the first window of the other windows. If the preset rule is not satisfied, the first display module 6066 is executed; wherein, the second preset rule is used to instruct to open the web page in a new tab page.
进一步优选地,所述预览页面加载模块606还可以包括Further preferably, the preview page loading module 606 may also include
第二接收模块6068,用于在所述第一显示模块6066在所述其他窗口中的第一窗口中显示所述第一统一资源定位符对应的第一预览页面之后,接收针对所述主页面的第二触发操作。The second receiving module 6068 is configured to, after the first display module 6066 displays the first preview page corresponding to the first uniform resource locator in the first window among the other windows, receive a target page for the home page the second trigger action.
第二url确定模块60610,用于根据所述第二触发操作,确定所述主页面中的第二统一资源定位符。The second url determination module 60610 is configured to determine the second uniform resource locator in the home page according to the second trigger operation.
第二显示模块60612,用于在所述其他窗口中的第二窗口中显示所述第二统一资源定位符对应的第二预览页面,或,根据所述第二统一资源定位符更新所述第一窗口,在所述第一窗口中显示所述第二统一资源定位符对应的第二预览页面。The second display module 60612 is configured to display the second preview page corresponding to the second uniform resource locator in the second window among the other windows, or update the first preview page according to the second uniform resource locator A window, where the second preview page corresponding to the second uniform resource locator is displayed in the first window.
其中,在本实施例的一优选方案中,所述浏览器装置还可以包括:Wherein, in a preferred solution of this embodiment, the browser device may further include:
确定模块608,用于在所述窗口加载模块602在浏览器的当前标签页中加载至少两个窗口之前,接收服务器返回的根据所述请求信息确定的所述主页面。其中,所述请求信息中携带有所述标签页对应的统一资源定位符。The determining module 608 is configured to receive the main page determined according to the request information returned by the server before the window loading module 602 loads at least two windows in the current tab page of the browser. Wherein, the request information carries the uniform resource locator corresponding to the tab page.
拦截模块610,用于获取并拦截用于加载所述主页面的主页面窗口。The interception module 610 is configured to acquire and intercept the main page window used for loading the main page.
在本实施例中,优选地,在所述拦截模块610执行之前先可以通过如下模块确定是否需要执行所述拦截模块610:第一判断模块,用于在所述拦截模块610获取并拦截用于加载所述主页面的主页面窗口之前,判断所述标签页对应的统一资源定位符是否满足的第一预置规则,若是,则执行所述拦截模块610。其中,所述第一预置规则可也包括但不仅限于:用于指示页面为如下页面中至少一种的设定统一资源定位符:搜索结果页面、新闻页面、论坛页面、贴吧页面、视频页面、音乐页面。In this embodiment, preferably, before the interception module 610 is executed, it can be determined whether the interception module 610 needs to be executed through the following modules: a first judgment module, which is used to obtain and intercept the interception module 610 for Before loading the main page window of the main page, determine whether the uniform resource locator corresponding to the tab page satisfies the first preset rule, and if so, execute the intercepting module 610 . Wherein, the first preset rule may also include but is not limited to: a set uniform resource locator used to indicate that the page is at least one of the following pages: search result page, news page, forum page, post bar page, video page , Music page.
拆分模块612,用于将所述主页面窗口拆分为所述至少两个窗口。The splitting module 612 is configured to split the main page window into the at least two windows.
在本实施例的又一优选方案中,所述浏览器装置还可以包括:In another preferred solution of this embodiment, the browser device may further include:
建立模块614,用于在所述窗口加载模块602在浏览器的当前标签页中加载至少两个窗口之后,建立并保存所述当前标签页、所述其中一个窗口、和所述其他窗口三者之间的绑定关系。The establishment module 614 is configured to establish and save the current tab page, the one window, and the other windows after the window loading module 602 loads at least two windows in the current tab page of the browser binding relationship between.
在本实施例的另一优选方案中,所述浏览器装置还可以包括:In another preferred solution of this embodiment, the browser device may further include:
操作请求接收模块616,用于在所述预览页面加载模块通过所述至少两个窗口中除所述其中一个窗口外的其他窗口加载预览页面之后,接收针对所述其他窗口的发送操作请求,将所述其他窗口中加载的预览页面发送至新建标签页中进行加载。The operation request receiving module 616 is configured to, after the preview page loading module loads the preview page through other windows except the one of the at least two windows, receive a sending operation request for the other windows, and send the operation request to the other windows. The preview page loaded in the other window is sent to a new tab page for loading.
综上所述,本实施例所述的浏览器装置,可以在浏览器的当前标签页中加载至少两个窗口;通过所述至少两个窗口中的其中一个窗口加载主页面;其中,所述主页面包括:根据所述标签页对应的统一资源定位符确定的页面;以及,通过所述至少两个窗口中除所述其中一个窗口外的其他窗口加载预览页面;其中,所述预览页面包括:根据所述主页面中的统一资源定位符确定的页面。可见,在本实施例中,可以基于浏览器对不同的网页页面进行统一的管理和展现,用户可以定制个性化的展现方式。进一步地,可以在一个标签页中展现多个网页页面内容,避免了通过切换标签页来浏览不同的网页页面,节约了时间,提高了浏览效率,便于用户快速确定并获取自己需要的页面信息,提高了用户体验。To sum up, the browser device according to this embodiment can load at least two windows in the current tab page of the browser; load the main page through one of the at least two windows; wherein, the The main page includes: a page determined according to the uniform resource locator corresponding to the tab page; and loading a preview page through other windows except the one of the at least two windows; wherein, the preview page includes : The page determined according to the uniform resource locator in the main page. It can be seen that, in this embodiment, different web pages can be managed and displayed uniformly based on the browser, and the user can customize a personalized display manner. Further, the content of multiple web pages can be displayed in one tab, avoiding browsing different web pages by switching tabs, saving time, improving browsing efficiency, and facilitating users to quickly determine and obtain the page information they need, Improved user experience.
对于上述装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。For the above-mentioned apparatus embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and reference may be made to the partial descriptions of the method embodiments for related parts.
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general-purpose systems can also be used with teaching based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not directed to any particular programming language. It is to be understood that various programming languages may be used to implement the inventions described herein, and that the descriptions of specific languages above are intended to disclose the best mode for carrying out the invention.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. It will be understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it is to be understood that in the above description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together into a single embodiment, figure, or its description. This disclosure, however, should not be construed as reflecting an intention that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art will understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. The modules or units or components in the embodiments may be combined into one module or unit or component, and further they may be divided into multiple sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method so disclosed may be employed in any combination, unless at least some of such features and/or procedures or elements are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will appreciate that although some of the embodiments described herein include certain features, but not others, included in other embodiments, that combinations of features of different embodiments are intended to be within the scope of the invention within and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的浏览器设备中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。Various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the browser device according to the embodiments of the present invention. The present invention can also be implemented as apparatus or apparatus programs (eg, computer programs and computer program products) for performing part or all of the methods described herein. Such a program implementing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such signals may be downloaded from Internet sites, or provided on carrier signals, or in any other form.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-described embodiments illustrate rather than limit the invention, and that alternative embodiments may be devised by those skilled in the art without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. do not denote any order. These words can be interpreted as names.
本发明公开了A1、一种基于浏览器的网页加载方法,包括:The invention discloses A1, a browser-based web page loading method, comprising:
在浏览器的当前标签页中加载至少两个窗口;Load at least two windows in the current tab of the browser;
通过所述至少两个窗口中的其中一个窗口加载主页面;其中,所述主页面包括:根据所述标签页对应的统一资源定位符确定的页面;以及,Load the main page through one of the at least two windows; wherein, the main page includes: a page determined according to the uniform resource locator corresponding to the tab page; and,
通过所述至少两个窗口中除所述其中一个窗口外的其他窗口加载预览页面;其中,所述预览页面包括:根据所述主页面中的统一资源定位符确定的页面。The preview page is loaded through other windows except the one of the at least two windows; wherein, the preview page includes: a page determined according to the uniform resource locator in the main page.
A2、如A1所述的方法,在所述在浏览器的当前标签页中加载至少两个窗口的步骤之前,所述方法还包括:A2. The method according to A1, before the step of loading at least two windows in the current tab page of the browser, the method further includes:
接收服务器返回的根据所述请求信息确定的所述主页面;其中,所述请求信息中携带有所述标签页对应的统一资源定位符;receiving the home page determined according to the request information returned by the server; wherein the request information carries the uniform resource locator corresponding to the tab page;
获取并拦截用于加载所述主页面的主页面窗口;obtain and intercept the main page window used to load the main page;
将所述主页面窗口拆分为所述至少两个窗口。splitting the main page window into the at least two windows.
A3、如A2所述的方法,在所述获取并拦截用于加载所述主页面的主页面窗口的步骤之前,所述方法还包括:A3. The method according to A2, before the step of acquiring and intercepting the main page window for loading the main page, the method further comprises:
判断所述标签页对应的统一资源定位符是否满足的第一预置规则,若是,则执行所述获取并拦截用于加载所述主页面的主页面窗口的步骤。Determine whether the uniform resource locator corresponding to the tab page satisfies the first preset rule, and if so, execute the step of acquiring and intercepting the main page window for loading the main page.
A4、如A3所述的方法,所述第一预置规则包括:用于指示页面为如下页面中至少一种的设定统一资源定位符:搜索结果页面、新闻页面、论坛页面、贴吧页面、视频页面、音乐页面。A4. The method according to A3, wherein the first preset rule includes: a set uniform resource locator for indicating that the page is at least one of the following pages: search result page, news page, forum page, post bar page, Video page, music page.
A5、如A1所述的方法,所述通过所述至少两个窗口中除所述其中一个窗口外的其他窗口加载预览页面,包括:A5. The method according to A1, wherein loading the preview page through other windows except the one of the at least two windows includes:
接收针对所述主页面的第一触发操作;receiving a first trigger operation for the home page;
根据所述第一触发操作,确定所述主页面中的第一统一资源定位符;determining the first uniform resource locator in the home page according to the first triggering operation;
在所述其他窗口中的第一窗口中显示所述第一统一资源定位符对应的第一预览页面。A first preview page corresponding to the first uniform resource locator is displayed in a first window among the other windows.
A6、如A5所述的方法,所述通过所述至少两个窗口中除所述其中一个窗口外的其他窗口加载预览页面,还包括:A6. The method according to A5, wherein the loading the preview page through other windows except the one of the at least two windows further includes:
在所述其他窗口中的第一窗口中显示所述第一统一资源定位符对应的第一预览页面的步骤之后,接收针对所述主页面的第二触发操作;After the step of displaying the first preview page corresponding to the first uniform resource locator in the first window of the other windows, receiving a second trigger operation for the main page;
根据所述第二触发操作,确定所述主页面中的第二统一资源定位符;determining a second uniform resource locator in the home page according to the second trigger operation;
在所述其他窗口中的第二窗口中显示所述第二统一资源定位符对应的第二预览页面,或,根据所述第二统一资源定位符更新所述第一窗口,在所述第一窗口中显示所述第二统一资源定位符对应的第二预览页面。Display the second preview page corresponding to the second uniform resource locator in the second window among the other windows, or update the first window according to the second uniform resource locator, in the first A second preview page corresponding to the second uniform resource locator is displayed in the window.
A7、如A5所述的方法,在所述在所述其他窗口中的第一窗口中显示所述第一统一资源定位符对应的第一预览页面的步骤之前,所述方法还包括:A7. The method according to A5, before the step of displaying the first preview page corresponding to the first uniform resource locator in the first window among the other windows, the method further includes:
判断所述第一触发操作是否满足第二预置规则,若不满足,则执行所述在所述其他窗口中的第一窗口中显示所述第一统一资源定位符对应的第一预览页面的步骤;其中,所述第二预置规则用于指示在新标签页中打开网页页面。Determine whether the first trigger operation satisfies the second preset rule, and if not, execute the process of displaying the first preview page corresponding to the first uniform resource locator in the first window among the other windows. step; wherein, the second preset rule is used to instruct to open a webpage in a new tab.
A8、如A1所述的方法,在所述在浏览器的当前标签页中加载至少两个窗口的步骤之后,所述方法还包括:A8. The method according to A1, after the step of loading at least two windows in the current tab page of the browser, the method further includes:
建立并保存所述当前标签页、所述其中一个窗口、和所述其他窗口三者之间的绑定关系。A binding relationship between the current tab page, the one window, and the other window is established and saved.
A9、如A1所述的方法,在所述通过所述至少两个窗口中除所述其中一个窗口外的其他窗口加载预览页面的步骤之后,所述方法还包括:A9. The method according to A1, after the step of loading the preview page through other windows except the one of the at least two windows, the method further includes:
接收针对所述其他窗口的发送操作请求,将所述其他窗口中加载的预览页面发送至新建标签页中进行加载。A sending operation request for the other window is received, and the preview page loaded in the other window is sent to a new tab page for loading.
A10、如A1-A9任一项所述的方法,所述网页加载方法通过浏览器主程序实现。A10. The method according to any one of A1-A9, wherein the webpage loading method is implemented by a browser main program.
本发明还公开了B11、一种浏览器装置,包括:The invention also discloses B11, a browser device, comprising:
窗口加载模块,用于在浏览器的当前标签页中加载至少两个窗口;The window loading module is used to load at least two windows in the current tab of the browser;
主页面加载模块,用于通过所述至少两个窗口中的其中一个窗口加载主页面;其中,所述主页面包括:根据所述标签页对应的统一资源定位符确定的页面;a main page loading module, configured to load a main page through one of the at least two windows; wherein, the main page includes: a page determined according to a uniform resource locator corresponding to the tab page;
预览页面加载模块,用于通过所述至少两个窗口中除所述其中一个窗口外的其他窗口加载预览页面;其中,所述预览页面包括:根据所述主页面中的统一资源定位符确定的页面。A preview page loading module, configured to load a preview page through other windows except the one of the at least two windows; wherein, the preview page includes: determined according to the uniform resource locator in the main page page.
B12、如B11所述的浏览器装置,还包括:B12. The browser device according to B11, further comprising:
确定模块,用于在所述窗口加载模块在浏览器的当前标签页中加载至少两个窗口之前,接收服务器返回的根据所述请求信息确定的所述主页面;其中,所述请求信息中携带有所述标签页对应的统一资源定位符;A determination module, configured to receive the main page determined according to the request information returned by the server before the window loading module loads at least two windows in the current tab page of the browser; wherein the request information carries There is a uniform resource locator corresponding to the tab page;
拦截模块,用于获取并拦截用于加载所述主页面的主页面窗口;An interception module for acquiring and intercepting the main page window used to load the main page;
拆分模块,用于将所述主页面窗口拆分为所述至少两个窗口。A splitting module, configured to split the main page window into the at least two windows.
B13、如B12所述的浏览器装置,还包括:B13. The browser device according to B12, further comprising:
第一判断模块,用于在所述拦截模块获取并拦截用于加载所述主页面的主页面窗口之前,判断所述标签页对应的统一资源定位符是否满足的第一预置规则,若是,则执行所述拦截模块。a first judgment module, configured to judge whether the uniform resource locator corresponding to the tab page satisfies the first preset rule before the interception module acquires and intercepts the main page window for loading the main page, and if so, Then the interception module is executed.
B14、如B13所述的浏览器装置,所述第一预置规则包括:用于指示页面为如下页面中至少一种的设定统一资源定位符:搜索结果页面、新闻页面、论坛页面、贴吧页面、视频页面、音乐页面。B14. The browser device according to B13, wherein the first preset rule includes: a set uniform resource locator for indicating that the page is at least one of the following pages: a search result page, a news page, a forum page, a post bar page, video page, music page.
B15、如B11所述的浏览器装置,所述预览页面加载模块,包括:B15. The browser device according to B11, wherein the preview page loading module includes:
第一接收模块,用于接收针对所述主页面的第一触发操作;a first receiving module, configured to receive a first trigger operation for the main page;
第一url确定模块,用于根据所述第一触发操作,确定所述主页面中的第一统一资源定位符;a first url determination module, configured to determine the first uniform resource locator in the home page according to the first trigger operation;
第一显示模块,用于在所述其他窗口中的第一窗口中显示所述第一统一资源定位符对应的第一预览页面。A first display module, configured to display a first preview page corresponding to the first uniform resource locator in a first window among the other windows.
B16、如B15所述的浏览器装置,所述预览页面加载模块还包括:B16. The browser device according to B15, wherein the preview page loading module further includes:
第二接收模块,用于在所述第一显示模块在所述其他窗口中的第一窗口中显示所述第一统一资源定位符对应的第一预览页面之后,接收针对所述主页面的第二触发操作;a second receiving module, configured to receive a first preview page for the main page after the first display module displays the first preview page corresponding to the first uniform resource locator in the first window among the other windows Two trigger operations;
第二url确定模块,用于根据所述第二触发操作,确定所述主页面中的第二统一资源定位符;A second url determination module, configured to determine the second uniform resource locator in the home page according to the second trigger operation;
第二显示模块,用于在所述其他窗口中的第二窗口中显示所述第二统一资源定位符对应的第二预览页面,或,根据所述第二统一资源定位符更新所述第一窗口,在所述第一窗口中显示所述第二统一资源定位符对应的第二预览页面。A second display module, configured to display a second preview page corresponding to the second uniform resource locator in a second window among the other windows, or update the first preview page according to the second uniform resource locator window, where the second preview page corresponding to the second uniform resource locator is displayed in the first window.
B17、如B15所述的浏览器装置,还包括:B17. The browser device according to B15, further comprising:
第二判断模块,用于在所述第一显示模块在所述其他窗口中的第一窗口中显示所述第一统一资源定位符对应的第一预览页面之前,判断所述第一触发操作是否满足第二预置规则,若不满足,则执行所述第一显示模块;其中,所述第二预置规则用于指示在新标签页中打开网页页面。The second judgment module is configured to judge whether the first trigger operation is not performed before the first display module displays the first preview page corresponding to the first uniform resource locator in the first window among the other windows. The second preset rule is satisfied, and if not, the first display module is executed; wherein, the second preset rule is used to instruct to open the webpage in a new tab page.
B18、如B11所述的浏览器装置,还包括:B18. The browser device according to B11, further comprising:
建立模块,用于在所述窗口加载模块在浏览器的当前标签页中加载至少两个窗口之后,建立并保存所述当前标签页、所述其中一个窗口、和所述其他窗口三者之间的绑定关系。A creation module, configured to create and save the current tab page, the one window, and the other windows after the window loading module loads at least two windows in the current tab page of the browser binding relationship.
B19、如B11所述的浏览器装置,还包括:B19. The browser device according to B11, further comprising:
操作请求接收模块,用于在所述预览页面加载模块通过所述至少两个窗口中除所述其中一个窗口外的其他窗口加载预览页面之后,接收针对所述其他窗口的发送操作请求,将所述其他窗口中加载的预览页面发送至新建标签页中进行加载。The operation request receiving module is configured to, after the preview page loading module loads the preview page through other windows except the one of the at least two windows, receive a sending operation request for the other windows, The preview page loaded in the other window described above is sent to the new tab for loading.
Claims (17)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510629621.0A CN105183890B (en) | 2015-09-28 | 2015-09-28 | Browser-based web page loading method and browser device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510629621.0A CN105183890B (en) | 2015-09-28 | 2015-09-28 | Browser-based web page loading method and browser device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105183890A CN105183890A (en) | 2015-12-23 |
CN105183890B true CN105183890B (en) | 2020-07-10 |
Family
ID=54905971
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510629621.0A Active CN105183890B (en) | 2015-09-28 | 2015-09-28 | Browser-based web page loading method and browser device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105183890B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105677785A (en) * | 2015-12-31 | 2016-06-15 | 深圳市八零年代网络科技有限公司 | Method and system for outputting preview page in network browser |
CN106202160A (en) * | 2016-06-23 | 2016-12-07 | 青岛海信移动通信技术股份有限公司 | A kind of Webpage display process and device |
CN106407435A (en) * | 2016-09-28 | 2017-02-15 | 乐视控股(北京)有限公司 | Browser page display processing method and device |
CN106777380A (en) * | 2017-02-13 | 2017-05-31 | 广东欧珀移动通信有限公司 | Browser page display methods, device and terminal |
CN112799745B (en) * | 2019-11-14 | 2024-03-15 | 深圳市雅阅科技有限公司 | Page display control method and device |
CN111399721B (en) * | 2020-04-20 | 2024-04-30 | Oppo广东移动通信有限公司 | Method and device for triggering search by display interface, storage medium and terminal |
CN111857492A (en) * | 2020-08-09 | 2020-10-30 | 深圳市哈哈丫丫互联网有限公司 | Method for opening new tab of website |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103049177A (en) * | 2011-10-14 | 2013-04-17 | 浪潮乐金数字移动通信有限公司 | Mobile terminal and browser split screen browsing method thereof |
US9406082B2 (en) * | 2012-10-05 | 2016-08-02 | Redfin Corporation | Multiplexing web requests for improved performance |
CN103279517A (en) * | 2013-05-27 | 2013-09-04 | 中山爱科数字科技股份有限公司 | A method for displaying webpage content |
CN103376974A (en) * | 2013-06-28 | 2013-10-30 | 广州市动景计算机科技有限公司 | Window switching method and device |
CN104636120A (en) * | 2013-11-06 | 2015-05-20 | 中兴通讯股份有限公司 | Multi-window display method and device of browser |
-
2015
- 2015-09-28 CN CN201510629621.0A patent/CN105183890B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN105183890A (en) | 2015-12-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105183890B (en) | Browser-based web page loading method and browser device | |
CN103631875B (en) | Method for carrying out network search on browser side and browser | |
CN103034517B (en) | Browser controls tool loads method and apparatus | |
US8386955B1 (en) | User-optimized content for web browsing windows | |
US8438312B2 (en) | Dynamically rehosting web content | |
CN103685528B (en) | Information displaying method and device | |
US9503499B1 (en) | Concealing latency in display of pages | |
CN102999636B (en) | Method and browser for intercepting and processing pop-up windows in web pages | |
US20130019159A1 (en) | Mobile web browser for pre-loading web pages | |
CN105260421A (en) | Webpage loading method and apparatus | |
CN104572968B (en) | A kind of method for updating pages and device | |
CN103034518B (en) | The method and browser of loading browser control instrument | |
CN106202179B (en) | Page loading method and device | |
CN105095378A (en) | Method and device for loading web page pop-up comments | |
CN103034727A (en) | System for intercepting pop-up window in webpage | |
CN104462571A (en) | Webpage loading method and device and browser client-side | |
CN104484386A (en) | Information sharing method and browser client | |
US9697628B2 (en) | On-demand image spriting | |
CN104504071A (en) | SE (search engine)-based web cache providing method and web search client and server | |
CN105095525A (en) | Method and device for acquiring web page data | |
CN105141678A (en) | File management method and device | |
CN105183888A (en) | Data processing method based on browser and browser | |
CN103544271B (en) | Load Image in a kind of browser the method and apparatus for processing window | |
CN103248627B (en) | Method, forward proxy server and system for visiting website resources | |
CN102999591B (en) | File management method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20240113 Address after: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co.,Ltd. |