[go: up one dir, main page]

CN105630304A - Browser operation method and electronic equipment - Google Patents

Browser operation method and electronic equipment Download PDF

Info

Publication number
CN105630304A
CN105630304A CN201510958925.1A CN201510958925A CN105630304A CN 105630304 A CN105630304 A CN 105630304A CN 201510958925 A CN201510958925 A CN 201510958925A CN 105630304 A CN105630304 A CN 105630304A
Authority
CN
China
Prior art keywords
browser
currently displayed
content
menu
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510958925.1A
Other languages
Chinese (zh)
Other versions
CN105630304B (en
Inventor
陈耀攀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510958925.1A priority Critical patent/CN105630304B/en
Publication of CN105630304A publication Critical patent/CN105630304A/en
Application granted granted Critical
Publication of CN105630304B publication Critical patent/CN105630304B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

本发明公开了一种操作浏览器的方法,包括:在屏幕显示一浏览器的UI界面时,判断浏览器当前显示页面上的内容是否满足一预设条件;若当前显示页面上的内容满足预设条件,则在屏幕上显示一可移动窗口,可移动窗口内显示有浏览器的全部或部分菜单选项;检测是否有针对全部或部分菜单选项中的第一菜单选项的第一操作,第一菜单选项为全部或部分菜单选项中的任一菜单选项;若检测到第一操作,则执行第一菜单选项对应的指令,从而对浏览器进行操作。本发明有效地解决了现有手机浏览器存在屏幕利用率低的技术问题。同时,本发明还提供了一种电子设备。

The invention discloses a method for operating a browser, which includes: when a browser UI interface is displayed on the screen, judging whether the content on the currently displayed page of the browser satisfies a preset condition; if the content on the currently displayed page meets the preset condition, If the condition is set, a movable window is displayed on the screen, and all or part of the menu options of the browser are displayed in the movable window; whether there is a first operation for the first menu option in all or part of the menu options is detected, and the first The menu option is any menu option in all or part of the menu options; if the first operation is detected, an instruction corresponding to the first menu option is executed, thereby operating the browser. The invention effectively solves the technical problem of low screen utilization in existing mobile phone browsers. At the same time, the invention also provides an electronic device.

Description

一种操作浏览器的方法及电子设备Method and electronic device for operating browser

技术领域technical field

本发明涉及电子技术领域,尤其涉及一种操作浏览器的方法及电子设备。The invention relates to the field of electronic technology, in particular to a method for operating a browser and electronic equipment.

背景技术Background technique

随着科学技术的发展,智能手机已经广泛普及,并已经成为人们生活中一个重要的组成部分。智能手机具有独立的操作系统,支持用户自行安装第三方服务商提供的各种APP(Application,应用程序),从而满足了人们日常生活中的各种需求。With the development of science and technology, smart phones have been widely popularized and have become an important part of people's lives. The smart phone has an independent operating system, and supports users to install various APPs (Applications, application programs) provided by third-party service providers, thereby meeting various needs in people's daily life.

手机浏览器是一种在智能手机上通过无线通讯网络进行互联网内容浏览的移动互联网工具,具有非常强大的功能,已经成为智能手机中必备的APP,用户可以使用手机浏览器来浏览网页、看电影、听音乐、玩游戏、聊天、购物、点餐,等等。手机浏览器能够给为用户提供全方位的移动互联网服务。A mobile browser is a mobile Internet tool for browsing Internet content on a smart phone through a wireless communication network. It has very powerful functions and has become an essential APP in a smart phone. Movies, listen to music, play games, chat, shop, order food, and more. Mobile browsers can provide users with a full range of mobile Internet services.

目前的手机浏览器,一般在软件界面的底部设置有一菜单栏,里面显示有“上一页”、“下一页”、“刷新”等菜单选项,在用户浏览网页时,用户可以对菜单栏内的菜单选项进行操作,来满足用户的实际需要。Current mobile phone browsers are generally provided with a menu bar at the bottom of the software interface, which displays menu options such as "previous page", "next page" and "refresh". Operate the menu options in the menu to meet the actual needs of users.

但是,目前的智能手机为了便于携带,其屏幕都比较小,目前主流的智能手机屏幕在4.5英寸~5.5英寸之间(最大也就6英寸),并以5英寸居多,在智能手机屏幕普遍比较小情况下,在手机浏览器底部设计一菜单栏,也就牺牲了显示网页内容的面积,存在屏幕利用率低的问题,导致用户在浏览网页时,需要频繁的进行翻页操作,非常不方便。However, in order to be easy to carry, the screens of current smart phones are relatively small. The current mainstream smart phone screens are between 4.5 inches and 5.5 inches (the largest is 6 inches), and most of them are 5 inches. In small cases, designing a menu bar at the bottom of the mobile browser also sacrifices the area for displaying web page content, and there is a problem of low screen utilization, which causes users to frequently perform page turning operations when browsing web pages, which is very inconvenient .

发明内容Contents of the invention

鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的操作浏览器的方法及电子设备。In view of the above problems, the present invention is proposed to provide a method for operating a browser and an electronic device that overcome the above problems or at least partially solve the above problems.

本发明的一个方面,提供了一种操作浏览器的方法,包括:One aspect of the present invention provides a method for operating a browser, including:

在屏幕显示一浏览器的用户界面时,判断所述浏览器当前显示页面上的内容是否满足一预设条件;When the user interface of a browser is displayed on the screen, it is judged whether the content on the currently displayed page of the browser satisfies a preset condition;

若所述当前显示页面上的内容满足所述预设条件,则在屏幕上显示一可移动窗口,其中,所述可移动窗口内显示有所述浏览器的全部或部分菜单选项,M为正整数;If the content on the currently displayed page satisfies the preset condition, a movable window is displayed on the screen, wherein all or part of the menu options of the browser are displayed in the movable window, and M is positive integer;

检测是否有针对所述全部或部分菜单选项中的第一菜单选项的第一操作,其中,所述第一菜单选项为所述全部或部分菜单选项中的任一菜单选项;Detecting whether there is a first operation for a first menu option in all or part of the menu options, where the first menu option is any menu option in all or part of the menu options;

若检测到所述第一操作,则执行所述第一菜单选项对应的指令,从而对所述浏览器进行操作。If the first operation is detected, an instruction corresponding to the first menu option is executed, so as to operate the browser.

优选地,所述判断所述浏览器当前显示页面上的内容是否满足一预设条件,包括:Preferably, the judging whether the content on the page currently displayed by the browser satisfies a preset condition includes:

判断所述当前显示网页的类型是否为一预设类型;judging whether the type of the currently displayed webpage is a preset type;

若是,则确定所述当前显示页面上的内容满足所述预设条件;If yes, then determine that the content on the currently displayed page satisfies the preset condition;

若不是,则确定所述当前显示页面上的内容不满足所述预设条件。If not, it is determined that the content on the currently displayed page does not satisfy the preset condition.

优选地,所述预设类型为用户自定义的页面类型。Preferably, the preset type is a user-defined page type.

优选地,所述判断所述浏览器当前显示页面上的内容是否满足一预设条件,包括:Preferably, the judging whether the content on the page currently displayed by the browser satisfies a preset condition includes:

判断所述当前显示网页上的链接数量和/或锚文本数量是否小于一预设值;judging whether the number of links and/or the number of anchor texts on the currently displayed webpage is less than a preset value;

若小于,则确定所述当前显示页面上的内容满足所述预设条件;If less, then determine that the content on the currently displayed page satisfies the preset condition;

若不小于,则确定所述当前显示页面上的内容不满足所述预设条件。If not, it is determined that the content on the currently displayed page does not satisfy the preset condition.

优选地,所述判断所述浏览器当前显示页面上的内容是否满足一预设条件,包括:Preferably, the judging whether the content on the page currently displayed by the browser satisfies a preset condition includes:

判断所述当前显示网页上的内容的排版方式是否为一预排版方式;judging whether the typesetting method of the content on the currently displayed webpage is a pre-typesetting method;

若是,则确定所述当前显示页面上的内容满足所述预设条件;If yes, then determine that the content on the currently displayed page satisfies the preset condition;

若不是,则确定所述当前显示页面上的内容不满足所述预设条件。If not, it is determined that the content on the currently displayed page does not satisfy the preset condition.

优选地,所述全部或部分菜单选项分层级显示在所述可移动窗口内的多级菜单中。Preferably, all or part of the menu options are hierarchically displayed in a multi-level menu in the movable window.

优选地,所述在屏幕上显示一可移动窗口之后,还包括:Preferably, after displaying a movable window on the screen, the method further includes:

检测在一预设时间段内是否有所述第一操作;detecting whether there is the first operation within a preset time period;

若在所述预设时间段内未检测到所述第一操作,则将所述可移动窗口进行全部或部分隐藏。If the first operation is not detected within the preset time period, all or part of the movable window is hidden.

优选地,所述将所述可移动窗口进行全部或部分隐藏之后,还包括:Preferably, after the said movable window is completely or partially hidden, it further includes:

检测是否有针对所述可移动窗口的第二操作;Detecting whether there is a second operation for the movable window;

若检测到所述第二操作,则将所述可移动窗口进行全部显示。If the second operation is detected, all the movable windows are displayed.

优选地,所述判断所述浏览器当前显示页面上的内容是否满足一预设条件之后,还包括:Preferably, after the judging whether the content on the page currently displayed by the browser satisfies a preset condition, it also includes:

若所述当前显示页面上的内容不满足所述预设条件,则在屏幕的一预设显示区域固定显示所述全部或部分菜单选项。If the content on the currently displayed page does not satisfy the preset condition, all or part of the menu options are fixedly displayed in a preset display area of the screen.

优选地,所述在屏幕上显示一可移动窗口之后,还包括:Preferably, after displaying a movable window on the screen, the method further includes:

在所述预设显示区域显示所述当前页面上的内容。The content on the current page is displayed in the preset display area.

优选地,所述全部或部分菜单选项,包括以下菜单选项中的一种或多种:Preferably, all or part of the menu options include one or more of the following menu options:

用于跳转到当前显示页面的上一页面的菜单选项;A menu option for jumping to the previous page of the currently displayed page;

用于跳转到当前显示页面的下一页面的菜单选项;A menu option for jumping to the next page of the currently displayed page;

用于刷新当前显示页面的菜单选项;A menu option for refreshing the currently displayed page;

用于显示全部标签页的菜单选项;A menu option to show all tabs;

用于返回主页面的菜单选项;menu option to return to the main page;

用于将当前显示页面添加到收藏夹的菜单选项。Menu option to add the currently displayed page to favorites.

本发明的另一个方面,提供了一种电子设备,包括:Another aspect of the present invention provides an electronic device, comprising:

判断模块,用于在屏幕显示一浏览器的用户界面时,判断所述浏览器当前显示页面上的内容是否满足一预设条件;A judging module, configured to judge whether the content on the currently displayed page of the browser satisfies a preset condition when the user interface of a browser is displayed on the screen;

第一显示模块,用于若所述当前显示页面上的内容满足所述预设条件,则在屏幕上显示一可移动窗口,其中,所述可移动窗口内显示有所述浏览器用户界面UI上的全部或部分菜单选项,M为正整数;A first display module, configured to display a movable window on the screen if the content on the currently displayed page satisfies the preset condition, wherein the browser user interface UI is displayed in the movable window All or part of the menu options on , M is a positive integer;

第一检测模块,用于检测是否有针对所述全部或部分菜单选项中的第一菜单选项的第一操作,其中,所述第一菜单选项为所述全部或部分菜单选项中的任一菜单选项;A first detection module, configured to detect whether there is a first operation for the first menu option in all or part of the menu options, wherein the first menu option is any menu in the whole or part of the menu options option;

执行模块,用于若检测到所述第一操作,则执行所述第一菜单选项对应的指令,从而对所述浏览器进行操作。An executing module, configured to execute an instruction corresponding to the first menu option if the first operation is detected, so as to operate the browser.

优选地,所述判断模块,包括:Preferably, the judging module includes:

第一判断子模块,用于判断所述当前显示网页的类型是否为一预设类型;The first judging submodule is used to judge whether the type of the currently displayed webpage is a preset type;

第一确定子模块,用于若是,则确定所述当前显示页面上的内容满足所述预设条件;若不是,则确定所述当前显示页面上的内容不满足所述预设条件。The first determination submodule is configured to determine that the content on the currently displayed page satisfies the preset condition; if not, determine that the content on the currently displayed page does not meet the preset condition.

优选地,所述预设类型为用户自定义的页面类型。Preferably, the preset type is a user-defined page type.

优选地,所述判断模块,包括:Preferably, the judging module includes:

第二判断子模块,用于判断所述当前显示网页上的链接数量和/或锚文本数量是否小于一预设值;The second judging submodule is used to judge whether the number of links and/or the number of anchor texts on the currently displayed webpage is less than a preset value;

第二确定子模块,用于若小于,则确定所述当前显示页面上的内容满足所述预设条件;若不小于,则确定所述当前显示页面上的内容不满足所述预设条件。The second determining submodule is configured to determine that the content on the currently displayed page satisfies the preset condition if it is less than, and determine that the content on the currently displayed page does not meet the preset condition if it is not less than.

优选地,所述判断模块,包括:Preferably, the judging module includes:

第三判断子模块,用于判断所述当前显示网页上的内容的排版方式是否为一预排版方式;The third judging submodule is used to judge whether the typesetting method of the content on the currently displayed webpage is a pre-typesetting method;

第三确定子模块,用于若是,则确定所述当前显示页面上的内容满足所述预设条件;若不是,则确定所述当前显示页面上的内容不满足所述预设条件。The third determination submodule is configured to determine that the content on the currently displayed page satisfies the preset condition; if not, determine that the content on the currently displayed page does not meet the preset condition.

优选地,所述全部或部分菜单选项分层级显示在所述可移动窗口内的多级菜单中。Preferably, all or part of the menu options are hierarchically displayed in a multi-level menu in the movable window.

优选地,所述电子设备,还包括:Preferably, the electronic device further includes:

第二检测模块,用于所述在屏幕上显示一可移动窗口之后,检测在一预设时间段内是否有所述第一操作;The second detection module is used to detect whether there is the first operation within a preset time period after displaying a movable window on the screen;

隐藏模块,用于若在所述预设时间段内未检测到所述第一操作,则将所述可移动窗口进行全部或部分隐藏。A hiding module, configured to hide all or part of the movable window if the first operation is not detected within the preset time period.

优选地,所述电子设备,还包括:Preferably, the electronic device further includes:

第三检测模块,用于所述将所述可移动窗口进行全部或部分隐藏之后,检测是否有针对所述可移动窗口的第二操作;A third detection module, configured to detect whether there is a second operation on the movable window after the movable window is completely or partially hidden;

移动模块,用于若检测到所述第二操作,则将所述可移动窗口进行全部显示。A moving module, configured to display all the movable windows if the second operation is detected.

优选地,所述电子设备,还包括:Preferably, the electronic device further includes:

第二显示模块,用于所述判断所述浏览器当前显示页面上的内容是否满足一预设条件之后,若所述当前显示页面上的内容不满足所述预设条件,则在屏幕的一预设显示区域固定显示所述全部或部分菜单选项。The second display module is used for judging whether the content on the currently displayed page of the browser satisfies a preset condition, if the content on the currently displayed page does not meet the preset condition, then on a screen The preset display area fixedly displays all or part of the menu options.

优选地,所述电子设备,还包括:Preferably, the electronic device further includes:

第三显示模块,用于所述在屏幕上显示一可移动窗口之后,在所述预设显示区域显示所述当前页面上的内容。The third display module is configured to display the content on the current page in the preset display area after displaying a movable window on the screen.

优选地,所述全部或部分菜单选项,包括以下菜单选项中的一种或多种:Preferably, all or part of the menu options include one or more of the following menu options:

用于跳转到当前显示页面的上一页面的菜单选项;A menu option for jumping to the previous page of the currently displayed page;

用于跳转到当前显示页面的下一页面的菜单选项;A menu option for jumping to the next page of the currently displayed page;

用于刷新当前显示页面的菜单选项;A menu option for refreshing the currently displayed page;

用于显示全部标签页的菜单选项;A menu option to show all tabs;

用于返回主页面的菜单选项;menu option to return to the main page;

用于将当前显示页面添加到收藏夹的菜单选项。Menu option to add the currently displayed page to favorites.

本申请实施例中提供的技术方案,至少具有如下技术效果或优点:The technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:

根据本发明的一种操作浏览器的方法及电子设备,在屏幕显示一浏览器的用户界面时,判断浏览器当前显示页面上的内容是否满足一预设条件;若当前显示页面上的内容满足预设条件,则在屏幕上显示一可移动窗口,可移动窗口内显示有浏览器的全部或部分菜单选项;检测是否有针对全部或部分菜单选项中的第一菜单选项的第一操作,第一菜单选项为全部或部分菜单选项中的任一菜单选项;若检测到第一操作,则执行第一菜单选项对应的指令,从而对浏览器进行操作。由于在当前显示页面上的内容满足预设条件时,采用一可移动窗口显示手机浏览器的全部或部分菜单选项,取消了现有技术中在手机浏览器UI底部菜单栏的设计,底部空出来的显示区域可以用来显示网页内容,所以提高了屏幕的利用率,减少了用户在浏览网页时的翻页操作次数,为用户提供了便利,从而有效地解决了现有手机浏览器存在屏幕利用率低的技术问题。同时,由于先判断浏览器当前显示页面上的内容是否满足预设条件,在满足预设条件后,再采用可移动窗口手机浏览器的全部或部分菜单选项,这样可以有针对性地对手机浏览器的的全部或部分菜单选项进行合理的管理。例如,若当前显示页面上的内容以文字或图片为主,则可以通过可移动窗口显示手机浏览器的全部或部分菜单选项,这样提高了文字或图片的显示面积,提高了屏幕利用的效率;若当前显示页面上的内容以网站链接为主,则不采用可移动窗口显示手机浏览器的全部或部分菜单选项,这样可以避免可移动窗口遮挡网站链接而影响用户对网站链接的操作。According to a method and electronic device for operating a browser of the present invention, when a user interface of a browser is displayed on the screen, it is judged whether the content on the currently displayed page of the browser satisfies a preset condition; if the content on the currently displayed page satisfies Preset conditions, then display a movable window on the screen, display all or part of the menu options of the browser in the movable window; detect whether there is a first operation for the first menu option in all or part of the menu options, the first A menu option is any menu option in all or part of the menu options; if the first operation is detected, an instruction corresponding to the first menu option is executed, thereby operating the browser. When the content on the currently displayed page meets the preset conditions, a movable window is used to display all or part of the menu options of the mobile browser, which cancels the design of the menu bar at the bottom of the mobile browser UI in the prior art, leaving the bottom vacant The display area can be used to display the content of the webpage, so the utilization rate of the screen is improved, the number of page-turning operations of the user is reduced when browsing the webpage, and the convenience is provided for the user, thus effectively solving the existing screen utilization of the existing mobile browser. Low rate technical issues. At the same time, since it is first judged whether the content on the currently displayed page of the browser satisfies the preset condition, after the preset condition is satisfied, all or part of the menu options of the mobile browser with a movable window can be used, so that the mobile phone can be browsed in a targeted manner. Manage all or part of the menu options of the browser reasonably. For example, if the content on the currently displayed page is mainly text or pictures, all or part of the menu options of the mobile browser can be displayed through a movable window, which increases the display area of text or pictures and improves the efficiency of screen utilization; If the content on the currently displayed page is mainly website links, then the movable window is not used to display all or part of the menu options of the mobile browser, which can avoid the movable window blocking the website links and affecting the user's operation of the website links.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.

附图说明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 embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same parts. In the attached picture:

图1示出了现有技术中手机浏览器的UI设计示意图;FIG. 1 shows a schematic diagram of UI design of a mobile phone browser in the prior art;

图2示出了根据本发明一个实施例的一种操作浏览器的方法的流程图;Fig. 2 shows a flowchart of a method for operating a browser according to an embodiment of the present invention;

图3示出了根据本发明一个实施例的浏览器的一种UI设计示意图;FIG. 3 shows a schematic diagram of a UI design of a browser according to an embodiment of the present invention;

图4示出了根据本发明一个实施例的浏览器的另一种UI设计示意图;FIG. 4 shows another UI design diagram of a browser according to an embodiment of the present invention;

图5示出了根据本发明一个实施例的一种电子设备的结构示意图。Fig. 5 shows a schematic structural diagram of an electronic device according to an embodiment of the present invention.

具体实施方式detailed description

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although 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 for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

本发明实施例提供了一种操作浏览器的方法及电子设备,用以解决现有手机浏览器存在屏幕利用率低的技术问题。Embodiments of the present invention provide a method for operating a browser and electronic equipment to solve the technical problem of low screen utilization in existing mobile phone browsers.

首先说明,本文中出现的术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。First of all, the term "and/or" that appears in this article is just an association relationship that describes associated objects, which means that there can be three relationships, for example, A and/or B, which can mean: there is A alone, and A exists at the same time and B, there are three cases of B alone. In addition, the character "/" in this article generally indicates that the contextual objects are an "or" relationship.

在正式介绍本实施例中的一种操作浏览器的方法及电子设备之前,先对现有技术中存在的技术问题,进行一次详细说明:如图1所示,在现有技术中,在电子设备300(例如:智能手机)运行手机浏览器时,会在屏幕310(例如:电容式触摸屏、或电阻式触摸屏)上显示手机浏览器的UI(UserInterface,用户界面),一般在手机浏览器UI界面上设置有菜单栏402,在菜单栏402中设置有一些菜单选项(例如:“上一页”、“下一页”、“刷新”,等等),用户可以通过对这些菜单选项进行操作实现对手机浏览器的操作。但是,在现有的UI设计中,是将菜单栏402固定显示在屏幕310底部,这牺牲了手机浏览器显示网页内容的面积,存在屏幕利用率低的技术问题。Before formally introducing a method for operating a browser and the electronic device in this embodiment, a detailed description will be given to the technical problems existing in the prior art: as shown in Figure 1, in the prior art, in the electronic When the device 300 (for example: smart phone) runs the mobile browser, it will display the UI (UserInterface, user interface) of the mobile browser on the screen 310 (for example: capacitive touch screen, or resistive touch screen). The interface is provided with a menu bar 402, and some menu options (for example: "previous page", "next page", "refresh", etc.) are set in the menu bar 402, and the user can perform operations on these menu options Realize the operation of the mobile phone browser. However, in the existing UI design, the menu bar 402 is fixedly displayed at the bottom of the screen 310, which sacrifices the area where the mobile browser displays webpage content, and there is a technical problem of low screen utilization.

实施例一Embodiment one

本实施例提供了一种操作浏览器的方法,应用于电子设备300中,电子设备300可以是:智能手机,或平板电脑,或车载电脑,等等,此处,对于电子设备300具体是何种电子设备,本实施例不做具体限定。且在电子设备300内安装有一操作系统,例如,Android系统、IOS系统、或Windows8或Windows10系统等,此处,对于所述操作系统具体是何种操作系统,本实施例不做具体限定。This embodiment provides a method for operating a browser, which is applied to an electronic device 300. The electronic device 300 may be: a smart phone, or a tablet computer, or a vehicle-mounted computer, etc. Here, what specifically is the electronic device 300 electronic device, which is not specifically limited in this embodiment. And an operating system is installed in the electronic device 300, for example, an Android system, an IOS system, or a Windows 8 or Windows 10 system, etc. Here, the embodiment does not specifically limit the specific operating system of the operating system.

如图2-4所示,该操作浏览器的方法,包括:As shown in Figure 2-4, the method for operating the browser includes:

步骤S101:在屏幕310显示一浏览器的UI界面时,判断浏览器当前显示页面上的内容是否满足一预设条件。Step S101 : When a browser UI interface is displayed on the screen 310 , determine whether the content on the page currently displayed by the browser satisfies a preset condition.

在具体实施过程中,所述浏览器尤其指应用于移动终端中的浏览器(即:手机浏览器)。In a specific implementation process, the browser especially refers to a browser applied to a mobile terminal (ie, a mobile phone browser).

作为一种可选的实施例,步骤S101,包括:判断当前显示网页的类型是否为一预设类型,若是,则确定当前显示页面上的内容满足预设条件;若不是,则确定当前显示页面上的内容不满足预设条件。As an optional embodiment, step S101 includes: judging whether the type of the currently displayed webpage is a preset type, if so, determining that the content on the currently displayed page meets the preset condition; if not, determining whether the currently displayed page The content on does not meet the preset conditions.

在具体实施过程中,可以获取当前显示页面的标题信息,根据该标题信息确定当前显示页面的类型。例如,若该标题信息中包含“小说”、或“书城”等字样时,可以确定当前显示页面为小说类页面;若该标题信息中包含“美图”、或“摄影”等字样时,可以确定当前显示页面为图片类页面;若该标题信息中包含“影视”、或“电影”、或“大片”等字样时,可以确定当前显示页面为视频类页面;若该标题信息中包含“导航”、或“网址大全”等字样时,可以确定当前显示页面为导航类页面。In a specific implementation process, the title information of the currently displayed page can be obtained, and the type of the currently displayed page can be determined according to the title information. For example, if the title information contains words such as "novel" or "book city", it can be determined that the currently displayed page is a novel page; Determine that the currently displayed page is a picture page; if the title information contains words such as "video", "movie", or "blockbuster", it can be determined that the currently displayed page is a video page; if the title information contains "navigation ", or "Website Encyclopedia", it can be determined that the currently displayed page is a navigation page.

在具体实施过程中,还可以获取当前显示页面的URL(UniformResoureLocator,统一资源定位器),根据当前显示页面的URL确定当前显示页面的类型。具体来讲,可以将获取到的当前显示页面的URL在一数据库中进行比对,该数据库中保存有每个页面的URL和该页面的类型的对应关系,即可获知当前显示页面的类型,例如:是小说类页面、还是视频类页面、或图片类页面、或导航类页面,等等。In the specific implementation process, the URL (UniformResoureLocator, Uniform Resource Locator) of the currently displayed page can also be obtained, and the type of the currently displayed page can be determined according to the URL of the currently displayed page. Specifically, the obtained URL of the currently displayed page can be compared in a database, and the corresponding relationship between the URL of each page and the type of the page is stored in the database, so that the type of the currently displayed page can be known. For example: is it a novel page, or a video page, or a picture page, or a navigation page, and so on.

在具体实施过程中,所述预设类型可以包括:小说类,视频类,图片类;但不包括导航类。因为在小说类页面、视频类页面、或图片类页面上所展示的内容一般只需要用户观看赏析,很少需要用户对这些内容进行操作,在这类页面上显示可移动窗口403(例如:悬浮窗)对用户的影响较小,所以在这种情况下可以在屏幕310上显示可移动窗口403。但是,在导航类页面上密集布置有大量的网址链接,且每个网址链接的显示区域都很小,在这类页面上显示可移动窗口403会影响到用户点击网址链接,所以在这种情况下不宜在屏幕310上显示可移动窗口403。In a specific implementation process, the preset types may include: novels, videos, and pictures; but not including navigation. Because the content displayed on novel pages, video pages, or picture pages generally only requires users to watch and appreciate, and rarely requires users to operate these contents, a movable window 403 (for example: floating window 403) is displayed on such pages. window) has less influence on the user, so the movable window 403 can be displayed on the screen 310 in this case. However, there are a large number of URL links densely arranged on navigation pages, and the display area of each URL link is very small. Displaying a movable window 403 on this type of page will affect the user's click on the URL link, so in this case It is not appropriate to display the movable window 403 on the screen 310 .

另外,所述预设类型也可以为用户自定义的页面类型。具体来讲,可以获取用户的自定义操作,并基于用户的自定义操作确定所述预设类型。In addition, the preset type may also be a user-defined page type. Specifically, user-defined operations may be acquired, and the preset type may be determined based on the user-defined operations.

作为一种可选的实施例,步骤S101,包括:判断当前显示网页上的链接数量和/或锚文本数量是否小于一预设值;若小于,则确定当前显示页面上的内容满足预设条件;若不小于,则确定当前显示页面上的内容不满足预设条件。As an optional embodiment, step S101 includes: judging whether the number of links and/or anchor texts on the currently displayed web page is less than a preset value; if less, then determining that the content on the currently displayed page satisfies the preset condition ; If not less than, it is determined that the content on the currently displayed page does not meet the preset condition.

举例来讲,所述预设值可以为:20、或30、或40、或50等等,此处对于所述预设值具体为何值,本实施例不做具体限定。在当前显示网页上的链接数量和/或锚文本数量小于该预设值时,若在屏幕301上显示可移动窗口403,则对用户操作这些链接或锚文本影响较小,所以在这种情况下可以在屏幕310上显示可移动窗口403。但是,在当前显示网页上的链接数量和/或锚文本数量大于等于该预设值时,若屏幕310上显示可移动窗口403,则对用户操作这些链接或锚文本影响较大,所以在这种情况下不宜在屏幕310上显示可移动窗口403。For example, the preset value may be: 20, or 30, or 40, or 50, etc. Here, the specific value of the preset value is not specifically limited in this embodiment. When the number of links and/or anchor texts on the currently displayed web page is less than the preset value, if the movable window 403 is displayed on the screen 301, it will have little impact on the user's operation of these links or anchor texts, so in this case Next, a movable window 403 may be displayed on the screen 310 . However, when the number of links and/or anchor texts on the currently displayed webpage is greater than or equal to the preset value, if the movable window 403 is displayed on the screen 310, it will have a greater impact on the user's operation of these links or anchor texts, so here In this case, it is not appropriate to display the movable window 403 on the screen 310 .

另外,所述预设值也可以为用户自定义的数值。具体来讲,可以获取用户的自定义操作,并基于用户的自定义操作确定所述预设值。In addition, the preset value may also be a user-defined value. Specifically, user-defined operations may be obtained, and the preset value may be determined based on the user-defined operations.

作为一种可选的实施例,步骤S101,包括:判断当前显示网页上的内容的排版方式是否为一预排版方式;若是,则确定当前显示页面上的内容满足预设条件;若不是,则确定当前显示页面上的内容不满足预设条件。As an optional embodiment, step S101 includes: judging whether the typesetting method of the content on the currently displayed web page is a pre-typesetting method; if so, determining that the content on the currently displayed page meets the preset condition; if not, then It is determined that the content on the currently displayed page does not meet the preset condition.

举例来讲,所述预设排版方式可以为将页面上的链接(包括超链接)或锚文本等信息集中显示在页面的一块区域。若当前显示页面上的链接或锚文本集中显示在一块区域,则可以在该块区域以外的其他区域显示可移动窗口403,且不会影响用户操作这些链接或锚文本,所以在这种情况下可以在屏幕310上显示可移动窗口403。但是,若当前显示页面上的链接或锚文本分散显示在当前显示页面上,则无论可移动窗口403显示在哪里,都会影响用户操作这些链接或锚文本,所以在这种情况下不宜在屏幕310上显示可移动窗口403。For example, the preset typesetting method may be to display information such as links (including hyperlinks) or anchor text on the page in one area of the page. If the links or anchor texts on the currently displayed page are concentratedly displayed in one area, the movable window 403 can be displayed in other areas outside the block area, and it will not affect the user's operation of these links or anchor texts, so in this case A movable window 403 may be displayed on the screen 310 . However, if the links or anchor texts on the currently displayed page are scattered and displayed on the currently displayed page, no matter where the movable window 403 is displayed, it will affect the user's operation of these links or anchor texts, so in this case it is not appropriate to display them on the screen 310. A movable window 403 is displayed on the screen.

另外,所述预设排版方式也可以为用户自定义的排版方式。具体来讲,可以获取用户的自定义操作,并基于用户的自定义操作确定所述预设排版方式。In addition, the preset typesetting method may also be a user-defined typesetting method. Specifically, user-defined operations may be acquired, and the preset typesetting manner may be determined based on the user-defined operations.

作为一种可选的实施例,如图3-4所示,若当前显示页面上的内容不满足预设条件,则不显示可移动窗口403,而是在屏幕310的一预设显示区域404固定显示一菜单栏(其中包括手机浏览器UI上的全部或部分菜单选项)。其中,该预设显示区域404可以位于屏幕的底部、或顶部、或左侧、或右侧,等等。As an optional embodiment, as shown in Figure 3-4, if the content on the currently displayed page does not meet the preset conditions, the movable window 403 will not be displayed, but a preset display area 404 on the screen 310 Fixedly display a menu bar (which includes all or part of the menu options on the mobile browser UI). Wherein, the preset display area 404 may be located at the bottom, or top, or left, or right of the screen, and so on.

步骤S102:若当前显示页面上的内容满足预设条件,则在屏幕310上显示一可移动窗口403,其中,可移动窗口403内显示有浏览器的全部或部分菜单选项,M为正整数。Step S102: If the content on the currently displayed page satisfies the preset condition, display a movable window 403 on the screen 310, where all or part of the menu options of the browser are displayed in the movable window 403, and M is a positive integer.

在具体实施过程中,可移动窗口403可以为矩形(如图3所示),也可以为圆形(如图4所示),此处,对于可移动窗口403的具体形状,本实施例不做具体限定。In the specific implementation process, the movable window 403 may be rectangular (as shown in FIG. 3 ) or circular (as shown in FIG. 4 ). Here, the specific shape of the movable window 403 is not specified in this embodiment. Be specific.

在具体实施过程中,在可移动窗口403中显示有手机浏览器UI界面中的全部或部分菜单选项(即:菜单选项A、菜单选项B、菜单选项C、菜单选项D、菜单选项E,等等),这些菜单选项实际是一些命令按钮控件,用于触发不同的功能。In the specific implementation process, all or part of the menu options (that is: menu option A, menu option B, menu option C, menu option D, menu option E, etc.) in the mobile phone browser UI interface are displayed in the movable window 403 etc.), these menu options are actually some command button controls, which are used to trigger different functions.

举例来讲,在可移动窗口403中显示的菜单选项,可以为:“上一页”菜单选项,用于跳转到当前显示页面的上一页面;“下一页”菜单选项,用于跳转到当前显示页面的下一页面;“刷新”菜单选项,用于刷新当前显示页面;“标签页”菜单选项,用于显示全部标签页;“主页”菜单选项,用于返回主页面;“收藏”菜单选项,用于将当前显示页面添加到收藏夹;“详细”菜单选项,用于跳转到二级菜单中,并展示二级菜单中的菜单选项;中的一种或几多种。For example, the menu options displayed in the movable window 403 can be: "Previous Page" menu option, used to jump to the previous page of the currently displayed page; "Next Page" menu option, used to jump Go to the next page of the currently displayed page; the "Refresh" menu option is used to refresh the currently displayed page; the "Tab Page" menu option is used to display all tab pages; the "Home" menu option is used to return to the main page; " "Favorites" menu option, used to add the currently displayed page to favorites; "Detailed" menu option, used to jump to the secondary menu and display the menu options in the secondary menu; one or more of them .

在具体实施过程中,手机浏览器UI界面上的全部或部分菜单选项可以分层级显示在可移动窗口403内的多级菜单中。也就是说,这些菜单选项中的一部分可以显示在可移动窗口403内的主菜单中,用户可以直接对这些菜单选项进行操作;另一部分菜单选项则显示在主菜单的下级菜单(例如:二级菜单、或三级菜单,等等)中,用户需要调出下级菜单才能对其中的菜单选项进行操作。In a specific implementation process, all or part of the menu options on the UI interface of the mobile phone browser can be hierarchically displayed in a multi-level menu in the movable window 403 . That is to say, a part of these menu options can be displayed in the main menu in the movable window 403, and the user can directly operate these menu options; menu, or third-level menu, etc.), the user needs to call out the lower-level menu to operate the menu options therein.

举例来讲,如图3所示,可以将菜单选项A设置为“上一页”菜单选项,将菜单选B设置为“下一页”菜单选项,将菜单选C设置为“详细”菜单选项,将菜单选D设置为“标签页”菜单选项,将菜单选E设置为“主页”菜单选项,这些就是设置在主菜单中的菜单选项;在检测到用户触发“详细”菜单选项后,弹出一个二级菜单,其中显示有“收藏夹”菜单选项,“历史”菜单选项,“下载”菜单选项,“截图”菜单选项,“设置”菜单选项,等等;在检测到用户触发“设置”菜单选项后,弹出一个三级菜单,其中显示有“登录”菜单选项,“意见反馈”菜单选项,“消息推送设置”菜单选项,“检查更新”菜单选项,等等。此处,通过多级菜单来合理地展示手机浏览器的全部或部分菜单选项,可以使UI界面更加简洁,方便用户的操作。For example, as shown in Figure 3, menu option A can be set as the "Previous Page" menu option, menu option B can be set as the "Next Page" menu option, and menu option C can be set as the "Detailed" menu option , set the menu option D as the "tab page" menu option, and set the menu option E as the "homepage" menu option, these are the menu options set in the main menu; after detecting that the user triggers the "detailed" menu option, a pop-up A secondary menu that displays "Favorites" menu options, "History" menu options, "Downloads" menu options, "Screenshots" menu options, "Settings" menu options, etc.; when a user triggers "Settings" is detected After the menu options, a three-level menu pops up, which displays the menu options "Login", "Feedback" menu options, "Message Push Settings" menu options, "Check for Updates" menu options, and so on. Here, all or part of the menu options of the mobile browser can be reasonably displayed through multi-level menus, which can make the UI interface more concise and convenient for users to operate.

作为一种可选的实施例,在步骤S102之后,还包括:检测在一预设时间段内是否有第一操作;若在预设时间段内未检测到第一操作,则将可移动窗口403进行全部或部分隐藏。As an optional embodiment, after step S102, it also includes: detecting whether there is a first operation within a preset time period; if the first operation is not detected within a preset time period, the movable window 403 for full or partial hiding.

举例来讲,可以检测在一预设时间段内(例如:在2~3秒钟内、或在5~10秒钟内)是否有第一操作,第一操作用于操作可移动窗口403中的任一菜单选项进行操作(例如:用户点击了某一菜单选项),若在预设时间段内未检测到第一操作,即认定用户现在不需要对可移动窗口403中的菜单选项进行操作,则将可移动窗口403进行全部或部分隐藏。这样可以进一步增加手机浏览器中用于显示网页的面积,从而进一步提高屏幕310的利用率。For example, it may be detected whether there is a first operation within a preset time period (for example: within 2-3 seconds, or within 5-10 seconds), the first operation is used to operate the movable window 403 Operate any menu option (for example: the user clicks on a certain menu option), if the first operation is not detected within the preset time period, it is determined that the user does not need to operate the menu option in the movable window 403 now , then the movable window 403 is fully or partially hidden. In this way, the area used for displaying web pages in the mobile phone browser can be further increased, thereby further improving the utilization rate of the screen 310 .

作为一种可选的实施例,在将可移动窗口403进行全部或部分隐藏之后,可以继续检测是否有针对可移动窗口403的第二操作;若检测到第二操作,则将可移动窗口403进行全部显示。As an optional embodiment, after the movable window 403 is completely or partially hidden, it can continue to detect whether there is a second operation for the movable window 403; if the second operation is detected, the movable window 403 will be to display all.

举例来讲,在将可移动窗口403进行全部或部分隐藏之后,可以继续检测是否有针对可移动窗口403的第二操作(该第二操作可以是用户点击了可移动窗口403未隐藏的那部分,或摇动手机,或连续点击屏幕310两次或三次,等等),若检测到第二操作,则认定用户现在需要对可移动窗口403中的菜单选项进行操作,则将可移动窗口403进行全部显示。For example, after the movable window 403 is completely or partially hidden, it may continue to detect whether there is a second operation for the movable window 403 (the second operation may be that the user clicks on the unhidden part of the movable window 403 , or shake the mobile phone, or continuously click on the screen 310 twice or three times, etc.), if the second operation is detected, it is determined that the user needs to operate the menu options in the movable window 403 now, and then the movable window 403 will be Show all.

作为一种可选的实施例,在屏幕310上显示一可移动窗口403之后,还包括:在预设显示区域404显示当前显示页面上的内容。As an optional embodiment, after displaying a movable window 403 on the screen 310 , further includes: displaying content on the currently displayed page in a preset display area 404 .

由于取消了现有技术中在屏幕底部固定显示菜单栏402的设计,将空出来的预设区域404用于显示当前显示页面上的内容,从而提高了屏幕的利用率,减少了用户在浏览网页时的翻页操作次数,为用户提供了便利。Since the design of the menu bar 402 fixedly displayed at the bottom of the screen in the prior art is canceled, the preset area 404 vacated is used to display the content on the currently displayed page, thereby improving the utilization rate of the screen and reducing the user's time spent browsing the webpage. The number of page-turning operations per hour provides convenience for users.

作为一种可选的实施例,在步骤S101之后,还包括:检测是否有针对可移动窗口403的移动操作,该移动操作用于将可移动窗口403从第一显示区域移动到第二显示区域,若检测到该移动操作,则将可移动窗口403由第一显示区域移动到第二显示区域进行显示。也就是说,用户可以将该可移动窗口403拖动到屏幕310的任意位置进行显示,这样的设计更加灵活。若该可移动窗口403遮挡了用户想要浏览的内容,用户可以长按可移动窗口403并将其移走。As an optional embodiment, after step S101, it also includes: detecting whether there is a moving operation for the movable window 403, and the moving operation is used to move the movable window 403 from the first display area to the second display area , if the moving operation is detected, the movable window 403 is moved from the first display area to the second display area for display. That is to say, the user can drag the movable window 403 to any position on the screen 310 for display, and such a design is more flexible. If the movable window 403 blocks the content that the user wants to browse, the user can press and hold the movable window 403 and remove it.

步骤S103:检测是否有针对全部或部分菜单选项中的第一菜单选项的第一操作,其中,第一菜单选项为全部或部分菜单选项中的任一菜单选项。Step S103: Detect whether there is a first operation on a first menu option in all or part of the menu options, wherein the first menu option is any menu option in all or part of the menu options.

举例来讲,用户可以对可移动窗口403内的任一菜单选项进行操作(例如:点击操作),所述第一菜单选项可以为:“上一页”菜单选项,或“下一页”菜单选项、或“刷新”菜单选项、或“标签页”菜单选项、或“主页”菜单选项、或“收藏”菜单选项、或“详细”菜单选项,等等。For example, the user can operate (for example: click) on any menu option in the movable window 403, and the first menu option can be: a "previous page" menu option, or a "next page" menu option, or the Refresh menu option, or the Tabs menu option, or the Home menu option, or the Favorites menu option, or the Details menu option, etc.

步骤S104:若检测到第一操作,则执行第一菜单选项对应的指令,从而对浏览器进行操作。Step S104: If the first operation is detected, execute the instruction corresponding to the first menu option, so as to operate the browser.

举例来讲,在检测到用户触发了“上一页”菜单选项时,则执行对应的指令,从而跳转到当前显示页面的上一页面;在检测到用户触发了“下一页”菜单选项时,则执行对应的指令,从而跳转到当前显示页面的下一页面;在检测到用户触发了“刷新”菜单选项时,则执行对应的指令,从而刷新当前显示页面;在检测到用户触发了“标签页”菜单选项时,则执行对应的指令,从而显示全部标签页;在检测到用户触发了“收藏”菜单选项时,则执行对应的指,从而将当前显示页面添加到收藏夹;在检测到用户触发了“详细”菜单选项时,则执行对应的指令,从而跳转到二级菜单中,并展示二级菜单中的菜单选项。For example, when it is detected that the user triggers the "Previous Page" menu option, the corresponding instruction is executed to jump to the previous page of the currently displayed page; when it is detected that the user triggers the "Next Page" menu option , execute the corresponding instruction to jump to the next page of the current display page; when it is detected that the user triggers the "refresh" menu option, execute the corresponding instruction to refresh the current display page; When the "Tab Page" menu option is selected, the corresponding instruction is executed to display all the tab pages; when it is detected that the user triggers the "Favorite" menu option, the corresponding instruction is executed to add the currently displayed page to the favorites; When it is detected that the user triggers the "detailed" menu option, the corresponding instruction is executed, thereby jumping to the second-level menu, and displaying the menu options in the second-level menu.

本实施例提供的操作浏览器的方法可以集成在浏览器内部,也可以集成在电子设备300内的操作系统(或安装在操作系统上的一插件)内部。在集成在操作系统(或安装在操作系统上的一插件)内部时,可以同时管理正在运行的多个浏览器,用户可以切换显示每个浏览器,此时,本操作浏览器的方法仅作用于前台显示的浏览器,但不作用于后台运行的浏览器。The method for operating the browser provided in this embodiment may be integrated inside the browser, or inside the operating system (or a plug-in installed on the operating system) in the electronic device 300 . When integrated in the operating system (or a plug-in installed on the operating system), multiple running browsers can be managed at the same time, and the user can switch and display each browser. At this time, the method of operating the browser only works Applies to browsers displayed in the foreground, but not to browsers running in the background.

本申请实施例中提供的技术方案,至少具有如下技术效果或优点:The technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:

根据本发明的一种操作浏览器的方法,包括:在屏幕显示一浏览器的UI界面时,判断浏览器当前显示页面上的内容是否满足一预设条件;若当前显示页面上的内容满足预设条件,则在屏幕上显示一可移动窗口,可移动窗口内显示有浏览器的全部或部分菜单选项;检测是否有针对全部或部分菜单选项中的第一菜单选项的第一操作,第一菜单选项为全部或部分菜单选项中的任一菜单选项;若检测到第一操作,则执行第一菜单选项对应的指令,从而对浏览器进行操作。由于在当前显示页面上的内容满足预设条件时,采用一可移动窗口显示手机浏览器的全部或部分菜单选项,取消了现有技术中在手机浏览器UI底部菜单栏的设计,底部空出来的显示区域可以用来显示网页内容,所以提高了屏幕的利用率,减少了用户在浏览网页时的翻页操作次数,为用户提供了便利,从而有效地解决了现有手机浏览器存在屏幕利用率低的技术问题。同时,由于先判断浏览器当前显示页面上的内容是否满足预设条件,在满足预设条件后,再采用可移动窗口手机浏览器的全部或部分菜单选项,这样可以有针对性地对手机浏览器的的全部或部分菜单选项进行合理的管理。例如,若当前显示页面上的内容以文字或图片为主,则可以通过可移动窗口显示手机浏览器的全部或部分菜单选项,这样提高了文字或图片的显示面积,提高了屏幕利用的效率;若当前显示页面上的内容以网站链接为主,则不采用可移动窗口显示手机浏览器的全部或部分菜单选项,这样可以避免可移动窗口遮挡网站链接而影响用户对网站链接的操作。A method for operating a browser according to the present invention includes: when a browser UI interface is displayed on the screen, judging whether the content on the currently displayed page of the browser satisfies a preset condition; If the condition is set, a movable window is displayed on the screen, and all or part of the menu options of the browser are displayed in the movable window; whether there is a first operation for the first menu option in all or part of the menu options is detected, and the first The menu option is any menu option in all or part of the menu options; if the first operation is detected, an instruction corresponding to the first menu option is executed, thereby operating the browser. When the content on the currently displayed page meets the preset conditions, a movable window is used to display all or part of the menu options of the mobile browser, which cancels the design of the menu bar at the bottom of the mobile browser UI in the prior art, leaving the bottom vacant The display area can be used to display the content of the webpage, so the utilization rate of the screen is improved, the number of page-turning operations of the user is reduced when browsing the webpage, and the convenience is provided for the user, thus effectively solving the existing screen utilization of the existing mobile browser. Low rate technical issues. At the same time, since it is first judged whether the content on the currently displayed page of the browser satisfies the preset condition, after the preset condition is satisfied, all or part of the menu options of the mobile browser with a movable window can be used, so that the mobile phone can be browsed in a targeted manner. Manage all or part of the menu options of the browser reasonably. For example, if the content on the currently displayed page is mainly text or pictures, all or part of the menu options of the mobile browser can be displayed through a movable window, which increases the display area of text or pictures and improves the efficiency of screen utilization; If the content on the currently displayed page is mainly website links, then the movable window is not used to display all or part of the menu options of the mobile browser, which can avoid the movable window blocking the website links and affecting the user's operation of the website links.

实施例二Embodiment two

基于同一发明构思,本实施例提供了一种用于实现上述操作浏览器的方法的电子设备。Based on the same inventive concept, this embodiment provides an electronic device for implementing the above method for operating a browser.

如图5所示,本实施例还提供了一种电子设备,包括:As shown in Figure 5, this embodiment also provides an electronic device, including:

判断模块201,用于在屏幕显示一浏览器的UI界面时,判断所述浏览器当前显示页面上的内容是否满足一预设条件;Judging module 201, used for judging whether the content on the currently displayed page of the browser satisfies a preset condition when the UI interface of a browser is displayed on the screen;

第一显示模块202,用于若所述当前显示页面上的内容满足所述预设条件,则在屏幕上显示一可移动窗口,其中,所述可移动窗口内显示有所述浏览器用户界面UI上的全部或部分菜单选项,M为正整数;The first display module 202 is configured to display a movable window on the screen if the content on the currently displayed page satisfies the preset condition, wherein the browser user interface is displayed in the movable window All or part of the menu options on the UI, M is a positive integer;

第一检测模块203,用于检测是否有针对所述全部或部分菜单选项中的第一菜单选项的第一操作,其中,所述第一菜单选项为所述全部或部分菜单选项中的任一菜单选项;The first detection module 203 is configured to detect whether there is a first operation for the first menu option in all or part of the menu options, wherein the first menu option is any one of the all or part of the menu options menu options;

执行模块204,用于若检测到所述第一操作,则执行所述第一菜单选项对应的指令,从而对所述浏览器进行操作。The executing module 204 is configured to, if the first operation is detected, execute an instruction corresponding to the first menu option, so as to operate the browser.

作为一种可选的实施例,所述判断模块201,包括:As an optional embodiment, the judging module 201 includes:

第一判断子模块,用于判断所述当前显示网页的类型是否为一预设类型;The first judging submodule is used to judge whether the type of the currently displayed webpage is a preset type;

第一确定子模块,用于若是,则确定所述当前显示页面上的内容满足所述预设条件;若不是,则确定所述当前显示页面上的内容不满足所述预设条件。The first determination submodule is configured to determine that the content on the currently displayed page satisfies the preset condition; if not, determine that the content on the currently displayed page does not meet the preset condition.

作为一种可选的实施例,所述预设类型为用户自定义的页面类型。As an optional embodiment, the preset type is a user-defined page type.

作为一种可选的实施例,所述判断模块201,包括:As an optional embodiment, the judging module 201 includes:

第二判断子模块,用于判断所述当前显示网页上的链接数量和/或锚文本数量是否小于一预设值;The second judging submodule is used to judge whether the number of links and/or the number of anchor texts on the currently displayed webpage is less than a preset value;

第二确定子模块,用于若小于,则确定所述当前显示页面上的内容满足所述预设条件;若不小于,则确定所述当前显示页面上的内容不满足所述预设条件。The second determining submodule is configured to determine that the content on the currently displayed page satisfies the preset condition if it is less than, and determine that the content on the currently displayed page does not meet the preset condition if it is not less than.

作为一种可选的实施例,所述判断模块201,包括:As an optional embodiment, the judging module 201 includes:

第三判断子模块,用于判断所述当前显示网页上的内容的排版方式是否为一预排版方式;The third judging submodule is used to judge whether the typesetting method of the content on the currently displayed webpage is a pre-typesetting method;

第三确定子模块,用于若是,则确定所述当前显示页面上的内容满足所述预设条件;若不是,则确定所述当前显示页面上的内容不满足所述预设条件。The third determination submodule is configured to determine that the content on the currently displayed page satisfies the preset condition; if not, determine that the content on the currently displayed page does not meet the preset condition.

作为一种可选的实施例,所述全部或部分菜单选项分层级显示在所述可移动窗口内的多级菜单中。As an optional embodiment, all or part of the menu options are hierarchically displayed in a multi-level menu in the movable window.

作为一种可选的实施例,所述电子设备,还包括:As an optional embodiment, the electronic device further includes:

第二检测模块,用于所述在屏幕上显示一可移动窗口之后,检测在一预设时间段内是否有所述第一操作;The second detection module is used to detect whether there is the first operation within a preset time period after displaying a movable window on the screen;

隐藏模块,用于若在所述预设时间段内未检测到所述第一操作,则将所述可移动窗口进行全部或部分隐藏。A hiding module, configured to hide all or part of the movable window if the first operation is not detected within the preset time period.

作为一种可选的实施例,所述电子设备,还包括:As an optional embodiment, the electronic device further includes:

第三检测模块,用于所述将所述可移动窗口进行全部或部分隐藏之后,检测是否有针对所述可移动窗口的第二操作;A third detection module, configured to detect whether there is a second operation on the movable window after the movable window is completely or partially hidden;

移动模块,用于若检测到所述第二操作,则将所述可移动窗口进行全部显示。A moving module, configured to display all the movable windows if the second operation is detected.

作为一种可选的实施例,所述电子设备,还包括:As an optional embodiment, the electronic device further includes:

第二显示模块,用于所述判断所述浏览器当前显示页面上的内容是否满足一预设条件之后,若所述当前显示页面上的内容不满足所述预设条件,则在屏幕的一预设显示区域固定显示所述全部或部分菜单选项。The second display module is used for judging whether the content on the currently displayed page of the browser satisfies a preset condition, if the content on the currently displayed page does not meet the preset condition, then on a screen The preset display area fixedly displays all or part of the menu options.

作为一种可选的实施例,所述电子设备,还包括:As an optional embodiment, the electronic device further includes:

第三显示模块,用于所述在屏幕上显示一可移动窗口之后,在所述预设显示区域显示所述当前页面上的内容。The third display module is configured to display the content on the current page in the preset display area after displaying a movable window on the screen.

作为一种可选的实施例,所述全部或部分菜单选项,包括以下菜单选项中的一种或多种:As an optional embodiment, all or part of the menu options include one or more of the following menu options:

用于跳转到当前显示页面的上一页面的菜单选项;A menu option for jumping to the previous page of the currently displayed page;

用于跳转到当前显示页面的下一页面的菜单选项;A menu option for jumping to the next page of the currently displayed page;

用于刷新当前显示页面的菜单选项;A menu option for refreshing the currently displayed page;

用于显示全部标签页的菜单选项;A menu option to show all tabs;

用于返回主页面的菜单选项;menu option to return to the main page;

用于将当前显示页面添加到收藏夹的菜单选项。Menu option to add the currently displayed page to favorites.

由于本实施例所介绍的电子设备为实施本申请实施例中操作浏览器的方法所采用的电子设备,故而基于本申请实施例中所介绍的操作浏览器的方法,本领域所属技术人员能够了解本实施例的电子设备的具体实施方式以及其各种变化形式,所以在此对于该电子设备如何实现本申请实施例中的方法不再详细介绍。只要本领域所属技术人员实施本申请实施例中操作浏览器的方法所采用的电子设备,都属于本申请所欲保护的范围。Since the electronic device introduced in this embodiment is the electronic device used to implement the method for operating the browser in the embodiment of the application, based on the method for operating the browser introduced in the embodiment of the application, those skilled in the art can understand The specific implementation manner of the electronic device in this embodiment and its various variants, so how the electronic device implements the method in the embodiment of the present application will not be described in detail here. As long as those skilled in the art implement the method for operating the browser in the embodiment of the present application, the electronic devices used belong to the intended protection scope of the present application.

本申请实施例中提供的技术方案,至少具有如下技术效果或优点:The technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:

根据本发明的一种操作浏览器的方法,包括:判断模块,用于在屏幕显示一浏览器的UI界面时,判断所述浏览器当前显示页面上的内容是否满足一预设条件;第一显示模块,用于若所述当前显示页面上的内容满足所述预设条件,则在屏幕上显示一可移动窗口,其中,所述可移动窗口内显示有所述浏览器用户界面UI上的全部或部分菜单选项,M为正整数;第一检测模块,用于检测是否有针对所述全部或部分菜单选项中的第一菜单选项的第一操作,其中,所述第一菜单选项为所述全部或部分菜单选项中的任一菜单选项;执行模块,用于若检测到所述第一操作,则执行所述第一菜单选项对应的指令,从而对所述浏览器进行操作。由于在当前显示页面上的内容满足预设条件时,采用一可移动窗口显示手机浏览器的全部或部分菜单选项,取消了现有技术中在手机浏览器UI底部菜单栏的设计,底部空出来的显示区域可以用来显示网页内容,所以提高了屏幕的利用率,减少了用户在浏览网页时的翻页操作次数,为用户提供了便利,从而有效地解决了现有手机浏览器存在屏幕利用率低的技术问题。同时,由于先判断浏览器当前显示页面上的内容是否满足预设条件,在满足预设条件后,再采用可移动窗口手机浏览器的全部或部分菜单选项,这样可以有针对性地对手机浏览器的的全部或部分菜单选项进行合理的管理。例如,若当前显示页面上的内容以文字或图片为主,则可以通过可移动窗口显示手机浏览器的全部或部分菜单选项,这样提高了文字或图片的显示面积,提高了屏幕利用的效率;若当前显示页面上的内容以网站链接为主,则不采用可移动窗口显示手机浏览器的全部或部分菜单选项,这样可以避免可移动窗口遮挡网站链接而影响用户对网站链接的操作。A method for operating a browser according to the present invention, comprising: a judging module, configured to judge whether the content on the currently displayed page of the browser satisfies a preset condition when the UI interface of a browser is displayed on the screen; A display module, configured to display a movable window on the screen if the content on the currently displayed page satisfies the preset condition, wherein the movable window displays the All or part of the menu options, M is a positive integer; the first detection module is used to detect whether there is a first operation for the first menu option in the whole or part of the menu options, wherein the first menu option is all Any menu option in all or part of the menu options; an execution module configured to, if the first operation is detected, execute an instruction corresponding to the first menu option, thereby operating the browser. When the content on the currently displayed page meets the preset conditions, a movable window is used to display all or part of the menu options of the mobile browser, which cancels the design of the menu bar at the bottom of the mobile browser UI in the prior art, leaving the bottom vacant The display area can be used to display the content of the webpage, so the utilization rate of the screen is improved, the number of page-turning operations of the user is reduced when browsing the webpage, and the convenience is provided for the user, thus effectively solving the existing screen utilization of the existing mobile browser. Low rate technical issues. At the same time, since it is first judged whether the content on the currently displayed page of the browser satisfies the preset condition, after the preset condition is satisfied, all or part of the menu options of the mobile browser with a movable window can be used, so that the mobile phone can be browsed in a targeted manner. Manage all or part of the menu options of the browser reasonably. For example, if the content on the currently displayed page is mainly text or pictures, all or part of the menu options of the mobile browser can be displayed through a movable window, which increases the display area of text or pictures and improves the efficiency of screen utilization; If the content on the currently displayed page is mainly website links, then the movable window is not used to display all or part of the menu options of the mobile browser, which can avoid the movable window blocking the website links and affecting the user's operation of the website links.

在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood 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 the understanding of this description.

类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention 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 can 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. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units 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 embodiments herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. And form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.

本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的电子设备中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The 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 functions of some or all components in the electronic device according to the embodiments of the present invention. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.

应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.

本发明公开了,A1、一种操作浏览器的方法,其特征在于,包括:The invention discloses, A1, a method for operating a browser, characterized in that it includes:

在屏幕显示一浏览器的用户界面时,判断所述浏览器当前显示页面上的内容是否满足一预设条件;When the user interface of a browser is displayed on the screen, it is judged whether the content on the currently displayed page of the browser satisfies a preset condition;

若所述当前显示页面上的内容满足所述预设条件,则在屏幕上显示一可移动窗口,其中,所述可移动窗口内显示有所述浏览器的全部或部分菜单选项,M为正整数;If the content on the currently displayed page satisfies the preset condition, a movable window is displayed on the screen, wherein all or part of the menu options of the browser are displayed in the movable window, and M is positive integer;

检测是否有针对所述全部或部分菜单选项中的第一菜单选项的第一操作,其中,所述第一菜单选项为所述全部或部分菜单选项中的任一菜单选项;Detecting whether there is a first operation for a first menu option in all or part of the menu options, where the first menu option is any menu option in all or part of the menu options;

若检测到所述第一操作,则执行所述第一菜单选项对应的指令,从而对所述浏览器进行操作。If the first operation is detected, an instruction corresponding to the first menu option is executed, so as to operate the browser.

A2、如A1所述的操作浏览器的方法,其特征在于,所述判断所述浏览器当前显示页面上的内容是否满足一预设条件,包括:A2. The method for operating a browser as described in A1, wherein said judging whether the content on the currently displayed page of the browser satisfies a preset condition includes:

判断所述当前显示网页的类型是否为一预设类型;judging whether the type of the currently displayed webpage is a preset type;

若是,则确定所述当前显示页面上的内容满足所述预设条件;If yes, then determine that the content on the currently displayed page satisfies the preset condition;

若不是,则确定所述当前显示页面上的内容不满足所述预设条件。If not, it is determined that the content on the currently displayed page does not satisfy the preset condition.

A3、如A1所述的操作浏览器的方法,其特征在于,所述预设类型为用户自定义的页面类型。A3. The method for operating a browser as described in A1, wherein the preset type is a user-defined page type.

A4、如A1所述的操作浏览器的方法,其特征在于,所述判断所述浏览器当前显示页面上的内容是否满足一预设条件,包括:A4. The method for operating a browser as described in A1, wherein said judging whether the content on the currently displayed page of the browser satisfies a preset condition includes:

判断所述当前显示网页上的链接数量和/或锚文本数量是否小于一预设值;judging whether the number of links and/or the number of anchor texts on the currently displayed webpage is less than a preset value;

若小于,则确定所述当前显示页面上的内容满足所述预设条件;If less, then determine that the content on the currently displayed page satisfies the preset condition;

若不小于,则确定所述当前显示页面上的内容不满足所述预设条件。If not, it is determined that the content on the currently displayed page does not satisfy the preset condition.

A5、如A1所述的操作浏览器的方法,其特征在于,所述判断所述浏览器当前显示页面上的内容是否满足一预设条件,包括:A5. The method for operating a browser as described in A1, wherein said judging whether the content on the currently displayed page of the browser satisfies a preset condition includes:

判断所述当前显示网页上的内容的排版方式是否为一预排版方式;judging whether the typesetting method of the content on the currently displayed webpage is a pre-typesetting method;

若是,则确定所述当前显示页面上的内容满足所述预设条件;If yes, then determine that the content on the currently displayed page satisfies the preset condition;

若不是,则确定所述当前显示页面上的内容不满足所述预设条件。If not, it is determined that the content on the currently displayed page does not satisfy the preset condition.

A6、如A1所述的操作浏览器的方法,其特征在于,所述全部或部分菜单选项分层级显示在所述可移动窗口内的多级菜单中。A6. The method for operating a browser as described in A1, wherein all or part of the menu options are hierarchically displayed in a multi-level menu in the movable window.

A7、如A1所述的操作浏览器的方法,其特征在于,所述在屏幕上显示一可移动窗口之后,还包括:A7, the method for operating a browser as described in A1, is characterized in that, after a movable window is displayed on the screen, it also includes:

检测在一预设时间段内是否有所述第一操作;detecting whether there is the first operation within a preset time period;

若在所述预设时间段内未检测到所述第一操作,则将所述可移动窗口进行全部或部分隐藏。If the first operation is not detected within the preset time period, all or part of the movable window is hidden.

A8、如A7所述的操作浏览器的方法,其特征在于,所述将所述可移动窗口进行全部或部分隐藏之后,还包括:A8. The method for operating a browser as described in A7, characterized in that, after hiding all or part of the movable window, it also includes:

检测是否有针对所述可移动窗口的第二操作;Detecting whether there is a second operation for the movable window;

若检测到所述第二操作,则将所述可移动窗口进行全部显示。If the second operation is detected, all the movable windows are displayed.

A9、如A1所述的操作浏览器的方法,其特征在于,所述判断所述浏览器当前显示页面上的内容是否满足一预设条件之后,还包括:A9, the method for operating a browser as described in A1, is characterized in that, after said judging whether the content on the currently displayed page of said browser satisfies a preset condition, it also includes:

若所述当前显示页面上的内容不满足所述预设条件,则在屏幕的一预设显示区域固定显示所述全部或部分菜单选项。If the content on the currently displayed page does not satisfy the preset condition, all or part of the menu options are fixedly displayed in a preset display area of the screen.

A10、如A9所述的操作浏览器的方法,其特征在于,所述在屏幕上显示一可移动窗口之后,还包括:A10, the method for operating a browser as described in A9, is characterized in that, after a movable window is displayed on the screen, it also includes:

在所述预设显示区域显示所述当前页面上的内容。The content on the current page is displayed in the preset display area.

A11、如A1~A10任一所述的操作浏览器的方法,其特征在于,所述全部或部分菜单选项,包括以下菜单选项中的一种或多种:A11. The method for operating a browser as described in any one of A1 to A10, wherein all or part of the menu options include one or more of the following menu options:

用于跳转到当前显示页面的上一页面的菜单选项;A menu option for jumping to the previous page of the currently displayed page;

用于跳转到当前显示页面的下一页面的菜单选项;A menu option for jumping to the next page of the currently displayed page;

用于刷新当前显示页面的菜单选项;A menu option for refreshing the currently displayed page;

用于显示全部标签页的菜单选项;A menu option to show all tabs;

用于返回主页面的菜单选项;menu option to return to the main page;

用于将当前显示页面添加到收藏夹的菜单选项。Menu option to add the currently displayed page to favorites.

B12、一种电子设备,其特征在于,包括:B12, an electronic device, is characterized in that, comprising:

判断模块,用于在屏幕显示一浏览器的用户界面时,判断所述浏览器当前显示页面上的内容是否满足一预设条件;A judging module, configured to judge whether the content on the currently displayed page of the browser satisfies a preset condition when the user interface of a browser is displayed on the screen;

第一显示模块,用于若所述当前显示页面上的内容满足所述预设条件,则在屏幕上显示一可移动窗口,其中,所述可移动窗口内显示有所述浏览器用户界面UI上的全部或部分菜单选项,M为正整数;A first display module, configured to display a movable window on the screen if the content on the currently displayed page satisfies the preset condition, wherein the browser user interface UI is displayed in the movable window All or part of the menu options on , M is a positive integer;

第一检测模块,用于检测是否有针对所述全部或部分菜单选项中的第一菜单选项的第一操作,其中,所述第一菜单选项为所述全部或部分菜单选项中的任一菜单选项;A first detection module, configured to detect whether there is a first operation for the first menu option in all or part of the menu options, wherein the first menu option is any menu in the whole or part of the menu options option;

执行模块,用于若检测到所述第一操作,则执行所述第一菜单选项对应的指令,从而对所述浏览器进行操作。An executing module, configured to execute an instruction corresponding to the first menu option if the first operation is detected, so as to operate the browser.

B13、如B11所述的电子设备,其特征在于,所述判断模块,包括:B13, the electronic equipment as described in B11, is characterized in that, described judging module comprises:

第一判断子模块,用于判断所述当前显示网页的类型是否为一预设类型;The first judging submodule is used to judge whether the type of the currently displayed webpage is a preset type;

第一确定子模块,用于若是,则确定所述当前显示页面上的内容满足所述预设条件;若不是,则确定所述当前显示页面上的内容不满足所述预设条件。The first determination submodule is configured to determine that the content on the currently displayed page satisfies the preset condition; if not, determine that the content on the currently displayed page does not meet the preset condition.

B14、如B12所述的电子设备,其特征在于,所述预设类型为用户自定义的页面类型。B14. The electronic device as described in B12, wherein the preset type is a user-defined page type.

B15、如B12所述的电子设备,其特征在于,所述判断模块,包括:B15, the electronic equipment as described in B12, is characterized in that, described judging module comprises:

第二判断子模块,用于判断所述当前显示网页上的链接数量和/或锚文本数量是否小于一预设值;The second judging submodule is used to judge whether the number of links and/or the number of anchor texts on the currently displayed webpage is less than a preset value;

第二确定子模块,用于若小于,则确定所述当前显示页面上的内容满足所述预设条件;若不小于,则确定所述当前显示页面上的内容不满足所述预设条件。The second determining submodule is configured to determine that the content on the currently displayed page satisfies the preset condition if it is less than, and determine that the content on the currently displayed page does not meet the preset condition if it is not less than.

B16、如B12所述的电子设备,其特征在于,所述判断模块,包括:B16, the electronic equipment as described in B12, is characterized in that, described judging module comprises:

第三判断子模块,用于判断所述当前显示网页上的内容的排版方式是否为一预排版方式;The third judging submodule is used to judge whether the typesetting method of the content on the currently displayed webpage is a pre-typesetting method;

第三确定子模块,用于若是,则确定所述当前显示页面上的内容满足所述预设条件;若不是,则确定所述当前显示页面上的内容不满足所述预设条件。The third determining submodule is configured to determine that the content on the currently displayed page satisfies the preset condition if yes, and determine that the content on the currently displayed page does not meet the preset condition if not.

B17、如B12所述的电子设备,其特征在于,所述全部或部分菜单选项分层级显示在所述可移动窗口内的多级菜单中。B17. The electronic device according to B12, wherein all or part of the menu options are hierarchically displayed in a multi-level menu in the movable window.

B18、如B12所述的电子设备,其特征在于,所述电子设备,还包括:B18, the electronic equipment as described in B12, is characterized in that, described electronic equipment also comprises:

第二检测模块,用于所述在屏幕上显示一可移动窗口之后,检测在一预设时间段内是否有所述第一操作;The second detection module is used to detect whether there is the first operation within a preset time period after displaying a movable window on the screen;

隐藏模块,用于若在所述预设时间段内未检测到所述第一操作,则将所述可移动窗口进行全部或部分隐藏。A hiding module, configured to hide all or part of the movable window if the first operation is not detected within the preset time period.

B19、如B18所述的电子设备,其特征在于,所述电子设备,还包括:B19, the electronic equipment as described in B18, is characterized in that, described electronic equipment also comprises:

第三检测模块,用于所述将所述可移动窗口进行全部或部分隐藏之后,检测是否有针对所述可移动窗口的第二操作;A third detection module, configured to detect whether there is a second operation on the movable window after the movable window is completely or partially hidden;

移动模块,用于若检测到所述第二操作,则将所述可移动窗口进行全部显示。A moving module, configured to display all the movable windows if the second operation is detected.

B20、如B12所述的电子设备,其特征在于,所述电子设备,还包括:B20, the electronic equipment as described in B12, is characterized in that, described electronic equipment also comprises:

第二显示模块,用于所述判断所述浏览器当前显示页面上的内容是否满足一预设条件之后,若所述当前显示页面上的内容不满足所述预设条件,则在屏幕的一预设显示区域固定显示所述全部或部分菜单选项。The second display module is used for judging whether the content on the currently displayed page of the browser satisfies a preset condition, if the content on the currently displayed page does not meet the preset condition, then on a screen The preset display area fixedly displays all or part of the menu options.

B21、如B20所述的电子设备,其特征在于,所述电子设备,还包括:B21, the electronic equipment as described in B20, is characterized in that, described electronic equipment also comprises:

第三显示模块,用于所述在屏幕上显示一可移动窗口之后,在所述预设显示区域显示所述当前页面上的内容。The third display module is configured to display the content on the current page in the preset display area after displaying a movable window on the screen.

B22、如B12~B21任一所述的电子设备,其特征在于,所述全部或部分菜单选项,包括以下菜单选项中的一种或多种:B22. The electronic device as described in any one of B12 to B21, wherein all or part of the menu options include one or more of the following menu options:

用于跳转到当前显示页面的上一页面的菜单选项;A menu option for jumping to the previous page of the currently displayed page;

用于跳转到当前显示页面的下一页面的菜单选项;A menu option for jumping to the next page of the currently displayed page;

用于刷新当前显示页面的菜单选项;A menu option for refreshing the currently displayed page;

用于显示全部标签页的菜单选项;A menu option to show all tabs;

用于返回主页面的菜单选项;menu option to return to the main page;

用于将当前显示页面添加到收藏夹的菜单选项。Menu option to add the currently displayed page to favorites.

Claims (10)

1.一种操作浏览器的方法,其特征在于,包括:1. A method for operating a browser, comprising: 在屏幕显示一浏览器的用户界面时,判断所述浏览器当前显示页面上的内容是否满足一预设条件;When the user interface of a browser is displayed on the screen, it is judged whether the content on the currently displayed page of the browser satisfies a preset condition; 若所述当前显示页面上的内容满足所述预设条件,则在所述屏幕上显示一可移动窗口,其中,所述可移动窗口内显示有所述浏览器的全部或部分菜单选项,M为正整数;If the content on the currently displayed page satisfies the preset condition, a movable window is displayed on the screen, wherein all or part of the menu options of the browser are displayed in the movable window, M is a positive integer; 检测是否有针对所述全部或部分菜单选项中的第一菜单选项的第一操作,其中,所述第一菜单选项为所述全部或部分菜单选项中的任一菜单选项;Detecting whether there is a first operation for a first menu option in all or part of the menu options, where the first menu option is any menu option in all or part of the menu options; 若检测到所述第一操作,则执行所述第一菜单选项对应的指令,从而对所述浏览器进行操作。If the first operation is detected, an instruction corresponding to the first menu option is executed, so as to operate the browser. 2.如权利要求1所述的操作浏览器的方法,其特征在于,所述判断所述浏览器当前显示页面上的内容是否满足一预设条件,包括:2. The method for operating a browser according to claim 1, wherein said judging whether the content on the currently displayed page of the browser satisfies a preset condition comprises: 判断所述当前显示网页的类型是否为一预设类型;judging whether the type of the currently displayed webpage is a preset type; 若是,则确定所述当前显示页面上的内容满足所述预设条件;If yes, then determine that the content on the currently displayed page satisfies the preset condition; 若不是,则确定所述当前显示页面上的内容不满足所述预设条件。If not, it is determined that the content on the currently displayed page does not satisfy the preset condition. 3.如权利要求1所述的操作浏览器的方法,其特征在于,所述预设类型为用户自定义的页面类型。3. The method for operating a browser according to claim 1, wherein the preset type is a user-defined page type. 4.如权利要求1所述的操作浏览器的方法,其特征在于,所述判断所述浏览器当前显示页面上的内容是否满足一预设条件,包括:4. The method for operating a browser according to claim 1, wherein said judging whether the content on the currently displayed page of the browser satisfies a preset condition comprises: 判断所述当前显示网页上的链接数量和/或锚文本数量是否小于一预设值;judging whether the number of links and/or the number of anchor texts on the currently displayed webpage is less than a preset value; 若小于,则确定所述当前显示页面上的内容满足所述预设条件;If less, then determine that the content on the currently displayed page satisfies the preset condition; 若不小于,则确定所述当前显示页面上的内容不满足所述预设条件。If not, it is determined that the content on the currently displayed page does not satisfy the preset condition. 5.如权利要求1所述的操作浏览器的方法,其特征在于,所述判断所述浏览器当前显示页面上的内容是否满足一预设条件,包括:5. The method for operating a browser according to claim 1, wherein said judging whether the content on the currently displayed page of the browser satisfies a preset condition comprises: 判断所述当前显示网页上的内容的排版方式是否为一预排版方式;judging whether the typesetting method of the content on the currently displayed webpage is a pre-typesetting method; 若是,则确定所述当前显示页面上的内容满足所述预设条件;If yes, then determine that the content on the currently displayed page satisfies the preset condition; 若不是,则确定所述当前显示页面上的内容不满足所述预设条件。If not, it is determined that the content on the currently displayed page does not satisfy the preset condition. 6.如权利要求1所述的操作浏览器的方法,其特征在于,所述全部或部分菜单选项分层级显示在所述可移动窗口内的多级菜单中。6. The method for operating a browser according to claim 1, wherein all or part of the menu options are hierarchically displayed in a multi-level menu in the movable window. 7.如权利要求1所述的操作浏览器的方法,其特征在于,所述在屏幕上显示一可移动窗口之后,还包括:7. The method for operating a browser according to claim 1, characterized in that, after displaying a movable window on the screen, further comprising: 检测在一预设时间段内是否有所述第一操作;detecting whether there is the first operation within a preset time period; 若在所述预设时间段内未检测到所述第一操作,则将所述可移动窗口进行全部或部分隐藏。If the first operation is not detected within the preset time period, all or part of the movable window is hidden. 8.如权利要求7所述的操作浏览器的方法,其特征在于,所述将所述可移动窗口进行全部或部分隐藏之后,还包括:8. The method for operating a browser according to claim 7, characterized in that, after hiding all or part of the movable window, further comprising: 检测是否有针对所述可移动窗口的第二操作;Detecting whether there is a second operation for the movable window; 若检测到所述第二操作,则将所述可移动窗口进行全部显示。If the second operation is detected, all the movable windows are displayed. 9.如权利要求1所述的操作浏览器的方法,其特征在于,所述判断所述浏览器当前显示页面上的内容是否满足一预设条件之后,还包括:9. The method for operating a browser as claimed in claim 1, wherein after said judging whether the content on the currently displayed page of the browser satisfies a preset condition, further comprising: 若所述当前显示页面上的内容不满足所述预设条件,则在屏幕的一预设显示区域固定显示所述全部或部分菜单选项。If the content on the currently displayed page does not satisfy the preset condition, all or part of the menu options are fixedly displayed in a preset display area of the screen. 10.一种电子设备,其特征在于,包括:10. An electronic device, characterized in that it comprises: 判断模块,用于在屏幕显示一浏览器的用户界面时,判断所述浏览器当前显示页面上的内容是否满足一预设条件;A judging module, configured to judge whether the content on the currently displayed page of the browser satisfies a preset condition when the user interface of a browser is displayed on the screen; 第一显示模块,用于若所述当前显示页面上的内容满足所述预设条件,则在屏幕上显示一可移动窗口,其中,所述可移动窗口内显示有所述浏览器用户界面UI上的全部或部分菜单选项,M为正整数;A first display module, configured to display a movable window on the screen if the content on the currently displayed page satisfies the preset condition, wherein the browser user interface UI is displayed in the movable window All or part of the menu options on , M is a positive integer; 第一检测模块,用于检测是否有针对所述全部或部分菜单选项中的第一菜单选项的第一操作,其中,所述第一菜单选项为所述全部或部分菜单选项中的任一菜单选项;A first detection module, configured to detect whether there is a first operation for the first menu option in all or part of the menu options, wherein the first menu option is any menu in the whole or part of the menu options option; 执行模块,用于若检测到所述第一操作,则执行所述第一菜单选项对应的指令,从而对所述浏览器进行操作。An executing module, configured to execute an instruction corresponding to the first menu option if the first operation is detected, so as to operate the browser.
CN201510958925.1A 2015-12-18 2015-12-18 A kind of method and electronic equipment operating browser Active CN105630304B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510958925.1A CN105630304B (en) 2015-12-18 2015-12-18 A kind of method and electronic equipment operating browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510958925.1A CN105630304B (en) 2015-12-18 2015-12-18 A kind of method and electronic equipment operating browser

Publications (2)

Publication Number Publication Date
CN105630304A true CN105630304A (en) 2016-06-01
CN105630304B CN105630304B (en) 2019-05-31

Family

ID=56045314

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510958925.1A Active CN105630304B (en) 2015-12-18 2015-12-18 A kind of method and electronic equipment operating browser

Country Status (1)

Country Link
CN (1) CN105630304B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108959444A (en) * 2018-04-18 2018-12-07 李世伟 Homepage cluster system management method and device based on tree
CN111399737A (en) * 2020-04-13 2020-07-10 网易(杭州)网络有限公司 Navigation bar control method and device, readable storage medium and electronic equipment
CN111813320A (en) * 2020-07-24 2020-10-23 网易(杭州)网络有限公司 Interaction method and device based on tab, electronic equipment and storage medium
WO2021219002A1 (en) * 2020-04-30 2021-11-04 海信视像科技股份有限公司 Display device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101388041A (en) * 2008-10-21 2009-03-18 深圳市同洲电子股份有限公司 Browsers page navigation method and system for handhold terminal
US20100005421A1 (en) * 2005-09-28 2010-01-07 Access Co., Ltd. Terminal Device and Program
CN102129345A (en) * 2010-01-19 2011-07-20 Lg电子株式会社 Mobile terminal and control method thereof
CN103034517A (en) * 2012-12-14 2013-04-10 北京奇虎科技有限公司 Method and device for loading browser control tool
CN103678646A (en) * 2013-12-20 2014-03-26 乐视网信息技术(北京)股份有限公司 Method and device for presenting pages
CN104267871A (en) * 2014-09-10 2015-01-07 百度在线网络技术(北京)有限公司 Method for rendering pages and device thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100005421A1 (en) * 2005-09-28 2010-01-07 Access Co., Ltd. Terminal Device and Program
CN101388041A (en) * 2008-10-21 2009-03-18 深圳市同洲电子股份有限公司 Browsers page navigation method and system for handhold terminal
CN102129345A (en) * 2010-01-19 2011-07-20 Lg电子株式会社 Mobile terminal and control method thereof
CN103034517A (en) * 2012-12-14 2013-04-10 北京奇虎科技有限公司 Method and device for loading browser control tool
CN103678646A (en) * 2013-12-20 2014-03-26 乐视网信息技术(北京)股份有限公司 Method and device for presenting pages
CN104267871A (en) * 2014-09-10 2015-01-07 百度在线网络技术(北京)有限公司 Method for rendering pages and device thereof

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108959444A (en) * 2018-04-18 2018-12-07 李世伟 Homepage cluster system management method and device based on tree
CN111399737A (en) * 2020-04-13 2020-07-10 网易(杭州)网络有限公司 Navigation bar control method and device, readable storage medium and electronic equipment
CN111399737B (en) * 2020-04-13 2022-02-11 网易(杭州)网络有限公司 Navigation bar control method and device, readable storage medium and electronic equipment
WO2021219002A1 (en) * 2020-04-30 2021-11-04 海信视像科技股份有限公司 Display device
CN111813320A (en) * 2020-07-24 2020-10-23 网易(杭州)网络有限公司 Interaction method and device based on tab, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN105630304B (en) 2019-05-31

Similar Documents

Publication Publication Date Title
US10169590B2 (en) Apparatus and method for displaying computer health index
CN105630305A (en) Method for displaying menu options in browser, and electronic equipment
CN105653578A (en) Browser operation method and electronic equipment
CN104536791A (en) Page resource loading method and device based on mobile terminal
JP2016521879A (en) Call an application from a web page or call another application
CN105260421A (en) Webpage loading method and apparatus
CN103019676A (en) Software management method and system
CN105630304A (en) Browser operation method and electronic equipment
CN105183890A (en) Webpage loading method based on browser and browser device
CN102945265A (en) Method and device for presenting label in browser
CN106599257B (en) Method for realizing page shortcut and electronic equipment
CN103559228B (en) The loading method and device of Shipping Options Page in browser
CN104008144A (en) Displaying method and device of address information
CN105912191A (en) Method and device for realizing interaction between applications of terminal equipment
CN105511737A (en) Method for managing menu options on web page and electronic device
CN106598617A (en) Method for setting webpage shortcut, and electronic equipment
CN105630891A (en) Menu option display method and electronic equipment
CN104461264B (en) Interactive interface generation method and device in a kind of browser of mobile terminal
CN107480218B (en) Webpage display method and device, electronic equipment and storage medium
CN102360294A (en) Wap page display method and Wap page display device based on WebKit browser
CN108139851B (en) Personalized startup states for software applications
CN105630886A (en) Browser control method and electronic equipment
CN106598398A (en) Realization method for video full screen, and electronic equipment
CN106603851A (en) Communication shortcut realizing method and electronic equipment
CN105608156A (en) Browser control method and electronic 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: 20220725

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

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

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

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

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