CN110889066A - Method and device for opening webpage in client software and electronic equipment - Google Patents

Method and device for opening webpage in client software and electronic equipment Download PDF

Info

Publication number
CN110889066A
CN110889066A CN201810936340.3A CN201810936340A CN110889066A CN 110889066 A CN110889066 A CN 110889066A CN 201810936340 A CN201810936340 A CN 201810936340A CN 110889066 A CN110889066 A CN 110889066A
Authority
CN
China
Prior art keywords
browser
target
webpage
terminal
utilized
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.)
Pending
Application number
CN201810936340.3A
Other languages
Chinese (zh)
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 Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Kingsoft Mobile Technology Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Kingsoft Mobile Technology 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 Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd, Guangzhou Kingsoft Mobile Technology Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN201810936340.3A priority Critical patent/CN110889066A/en
Publication of CN110889066A publication Critical patent/CN110889066A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural

Abstract

The embodiment of the invention provides a method and a device for opening a webpage in client software and electronic equipment. The method is applied to client software of the terminal, and comprises the following steps: obtaining a click instruction about a webpage address of a target webpage; searching a browser running record in the terminal; wherein the browser operation record comprises: log information about the browser in a preset time period in a browser process or a terminal; determining a target browser to be utilized based on the searched browser operation record; and sending the name of the target browser and the webpage address to an Application Program Interface (API) function of a system, so that the API function calls the target browser to open a target webpage corresponding to the webpage address. The embodiment of the invention can realize the purpose of reducing the inconvenience of the user in accessing the webpage.

Description

Method and device for opening webpage in client software and electronic equipment
Technical Field
The invention relates to the field of internet, in particular to a method and a device for opening a webpage in client software and electronic equipment.
Background
When a user uses client software in a terminal, a webpage often needs to be opened in the client software, for example, when a WeChat friend sends a webpage address in the process of using a mobile phone to conduct WeChat chat, a webpage corresponding to the webpage address needs to be opened in WeChat.
In the prior art, a web page is opened by launching a default browser. Although the web page can be opened, since the default browser is usually the browser set by the operating system, the user may not be suitable for the default browser, which undoubtedly causes great inconvenience to the user in accessing the web page.
Disclosure of Invention
The embodiment of the invention aims to provide a method, a device, electronic equipment and a storage medium for opening a webpage in client software, so as to reduce inconvenience of a user in accessing the webpage. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a method for opening a web page in client software, where the method includes:
obtaining a click instruction about a webpage address of a target webpage;
searching a browser running record in the terminal;
determining a target browser to be utilized based on the searched browser operation record;
and sending the name of the target browser and the webpage address to an Application Program Interface (API) function of a system, so that the API function calls the target browser to open a target webpage corresponding to the webpage address.
Optionally, the step of searching for the browser running record in the terminal includes:
judging whether a browser process exists in a program process started by the terminal currently;
if yes, taking the browser process as a browser running record;
if the log information does not exist, the log information about the browser in the preset time period in the terminal is searched, and the searched log information is used as the browser running record.
Optionally, when the browser process is used as a browser operation record, the step of determining a target browser to be utilized based on the searched browser operation record includes:
judging whether a browser process with a desktop on top exists in the browser processes;
if yes, determining the browser corresponding to the browser process with the desktop on top as a target browser to be utilized;
and if not, selecting a target browser to be utilized from the browser corresponding to the currently started browser process according to a preset screening rule.
Optionally, the step of determining whether a browser process with a desktop on top exists in the browser process includes:
determining window information of the browser process;
and judging whether the corresponding browser is set to the top or not based on the window information.
Optionally, when log information about a browser in a preset time period is used as a browser running record, the step of selecting a target browser to be utilized from at least one browser of the terminal based on the searched browser running record includes:
analyzing the log information to obtain the use frequency of each browser of the terminal;
based on the frequency of use, a target browser to be utilized is selected.
Optionally, the method further includes:
and when the browser running record in the terminal is not found, taking a default browser as a target browser to be utilized, and executing the step of sending the name of the target browser and the webpage address to an Application Program Interface (API) function of a system so that the API function calls the target browser to open a target webpage corresponding to the webpage address.
In a second aspect, an embodiment of the present invention provides an apparatus for opening a web page in client software, where the apparatus includes:
the acquisition module is used for acquiring a click command of a webpage address of a target webpage;
the searching module is used for searching the browser running record in the terminal;
the determining module is used for determining a target browser to be utilized based on the searched browser running record;
and the sending module is used for sending the name of the target browser and the webpage address to an Application Program Interface (API) function of a system so that the API function calls the target browser to open a target webpage corresponding to the webpage address.
Optionally, the search module is specifically configured to:
judging whether a browser process exists in a program process started by the terminal currently;
if yes, taking the browser process as a browser running record;
if the log information does not exist, the log information about the browser in the preset time period in the terminal is searched, and the searched log information is used as the browser running record.
Optionally, when the browser process is used as a browser running record, the determining module includes:
the judging submodule is used for judging whether a browser process with a desktop on top exists in the browser process;
the first determining submodule is used for determining a browser corresponding to the browser process with the desktop on top as a target browser to be utilized if the browser exists;
and the second determining submodule is used for selecting a target browser to be utilized from the browser corresponding to the currently started browser process according to a preset screening rule if the target browser does not exist.
Optionally, the determining submodule is specifically configured to:
determining window information of the browser process;
and judging whether the corresponding browser is set to the top or not based on the window information.
Optionally, when log information about the browser in a preset time period is used as a browser running record, the determining module is specifically configured to:
analyzing the log information to obtain the use frequency of each browser of the terminal;
based on the frequency of use, a target browser to be utilized is selected.
Optionally, the apparatus further comprises:
and the default execution module is used for taking the default browser as a target browser to be utilized when the browser operation record in the terminal is not found, and executing the step of sending the name of the target browser and the webpage address to an Application Program Interface (API) function of a system so that the API function calls the target browser to open a target webpage corresponding to the webpage address.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory, wherein,
the memory is used for storing a computer program;
the processor is configured to implement the steps of the method for opening a web page in client software according to the embodiment of the present invention when executing the program stored in the memory.
Compared with the prior art that a default browser is started to open a webpage, in the scheme provided by the embodiment of the invention, the target browser to be utilized is determined based on the searched browser running record, and the browser to be utilized is called to open the webpage. The browser running record can reflect the use condition of the user on the browser, and the browser determined based on the browser running record is the browser conforming to the use habit of the user, so that the inconvenience of the user for accessing the webpage can be reduced by the scheme provided by the embodiment of the invention.
Of course, it is not necessary for any product or method of practicing the invention to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for opening a web page in client software according to an embodiment of the present invention;
fig. 2 is another schematic flowchart of a method for opening a web page in client software according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for opening a web page in client software according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to reduce the inconvenience of a user in accessing a webpage, the embodiment of the invention provides a method and a device for opening the webpage in client software, electronic equipment and a storage medium.
It should be noted that an execution subject of the method for opening a web page in client software according to the embodiment of the present invention may be a device for opening a web page in client software, where the device may run in the client software.
First, a method for opening a web page in client software according to an embodiment of the present invention is described below.
As shown in fig. 1, a method for opening a web page in client software according to an embodiment of the present invention may include the following steps:
s101, obtaining a click command of a webpage address of the target webpage.
In the embodiment of the invention, the device running in the client software and opening the webpage in the client software can obtain the click command of the webpage address of the target webpage. Specifically, the device may obtain a click instruction of a user on a web page address of a target web page on the client software interface, where the web page address may be a Uniform Resource Locator (URL) address, and the like, and the click instruction may be a click instruction initiated by a mouse or a click instruction initiated by a finger or other tools, which are all reasonable.
S102, searching for the browser running record in the terminal.
It is understood that the terminal records various operations of the user in the terminal, and if a browser is running in the terminal or a browser is previously run in the terminal, a corresponding browser running record is stored in the terminal. Then, the apparatus may search for the operation record of the browser in the terminal, and if the operation record of the browser can be found, may determine the target browser to be utilized subsequently based on the found operation record of the browser.
It should be noted that, only the browser process may be recorded as the browser operation, or only the log information about the browser within the preset time period may be recorded as the browser operation. Of course, in order to improve the probability of finding the browser running record, when the browser process is found, the browser process may be used as the browser running record, and when the browser process is not found, if the log information about the browser in the preset time period is found, the log information may be used as the browser running record.
And S103, determining a target browser to be utilized based on the searched browser running record.
In the embodiment of the present invention, at least one browser may be obtained in the searched browser running record, and it may be understood that the at least one browser may be a browser being used by the user, or may be a browser that the user has used. Since the at least one browser is a browser used by the user, the at least one browser may be considered to conform to the user's habits. Accordingly, a target browser to be utilized may be determined among the at least one browser, and the determined target browser may reduce inconvenience of a user in accessing a web page.
It should be noted that, when the browser process is used as the browser operation record, based on the found browser operation record, determining that the target browser to be utilized is: based on the browser process, a target browser to be utilized is determined. And when the log information about the browser in the preset time period is taken as the browser running record, determining the target browser to be utilized as follows based on the searched browser running record: based on the log information, a target browser to be utilized is determined.
Based on the browser process, there are various specific implementation manners for determining a target browser to be utilized, for example: randomly selecting one browser from the browsers corresponding to the browser processes as the browser to be utilized, or further analyzing the browser processes to select the browser to be utilized, and the like. Similarly, there are various specific implementations of determining the target browser to be utilized based on the log information, such as: by analyzing the log information, the number of times of use of each browser is obtained, the browser to be utilized is determined based on the number of times of use, and the like.
And S104, sending the name of the target browser and the webpage address to an Application Program Interface (API) function of a system, so that the API function calls the target browser to open a target webpage corresponding to the webpage address.
In an embodiment of the present invention, the apparatus may send the name of the target browser and the web page address to an API function of a system. It can be understood that the API function is a program interface opened by the system to the client software in the terminal, and the API function is used for calling the target browser to open the target webpage corresponding to the webpage address.
It is emphasized that when no browser run record is found, the default browser can be the target browser.
In the scheme provided by the embodiment of the invention, the target browser to be utilized is determined based on the searched browser running record, and the browser to be utilized is called to open the webpage. The browser running record can reflect the use condition of the user to the browser, and the browser determined based on the browser running record is the browser which accords with the use habit of the user, so that compared with the prior art that a default browser is started to open a webpage, the scheme provided by the embodiment of the invention can reduce the inconvenience of the user for accessing the webpage.
The following describes a method for opening a web page in client software according to an embodiment of the present invention with reference to a specific embodiment.
As shown in fig. 2, a method for opening a web page in client software according to an embodiment of the present invention may include the following steps:
s201, obtaining a click command of a webpage address of the target webpage.
Step S201 is the same as step S101, and is not described herein again.
S202, judging whether a browser process exists in the program process started by the terminal currently, if so, executing S203, otherwise, executing S206.
It is to be understood that, when there is a browser process in the currently opened program process, it indicates that there is a browser opened by the user, and then, based on the browser process, a target browser to be utilized may be determined.
In an embodiment, attribute information of each currently opened program process may be obtained, and from the attribute information, it may be determined whether the program process is a browser process, for example, whether a process name is a browser name, or the like.
Specifically, in the embodiment of the present invention, a plurality of browsers with high market share may be found in advance, and process names of the plurality of browsers may be determined. Then, in step S202, it may be determined whether the name of the program process currently started by the terminal is one of the process names of the multiple browsers determined in advance, and if so, it is determined that the program process is a browser process; if not, determining that the program process is not a browser process.
S203, judging whether a browser process with a desktop on top exists in the browser processes, if so, executing S204, otherwise, executing S205.
It can be understood that, the software corresponding to the desktop top-positioned process is displayed on the screen of the terminal at the front position, that is, the browser corresponding to the desktop top-positioned browser process is the browser being used by the user. Therefore, if a desktop top-mounted browser process exists in the browser processes, the browser corresponding to the desktop top-mounted browser process can be determined as the target browser, so that the webpage can be opened by using the browser being used by the user, and the purposes of increasing the webpage opening speed and reducing the inconvenience of the user in accessing the webpage are achieved.
Specifically, the step of determining whether a browser process with a desktop on top exists in the browser process includes:
first, window information of the browser process is determined.
In the embodiment of the present invention, in the browser process, a window handle of the browser process may be obtained according to an ID (Identification name, identity number) of the browser process; wherein the window handle is similar to a storage space in which window information of the browser process is stored, the window information including: the name of the window, the size of the window, the position of the window on a terminal display screen, whether the window is placed at the top or not and the like.
And secondly, judging whether the corresponding browser is set on top or not based on the window information.
It can be understood that, from the information about whether a window is set top in the window information, it can be determined whether a corresponding browser in the browser process is set top.
S204, determining the browser corresponding to the browser process with the desktop on top as a target browser to be utilized, and executing S2010.
And S205, selecting a target browser to be utilized from the browser corresponding to the currently started browser process according to a preset screening rule, and executing S2010.
It can be understood that, when there is no desktop top browser process in the browser processes, the browser corresponding to the currently opened browser process is displayed at a rear position on the screen of the terminal, that is, so-called minimized. Since the browser corresponding to the currently opened browser process is the browser opened by the user, the target browser to be utilized can be determined from the browser corresponding to the currently opened browser process, the webpage opening speed can also be increased, and the inconvenience of the user in accessing the webpage is reduced.
Specifically, the target browser to be utilized may be selected from the browsers corresponding to the currently opened browser processes according to a preset screening rule, for example, according to the size of the CPU occupancy rate, the size of the memory, or random selection.
S206, judging whether the log information about the browser in the preset time period in the terminal can be found, if so, executing S207, otherwise, executing S209.
It can be understood that, in the currently opened program process, when there is no browser process, it means that the user does not currently open a browser. Then, log information about the browser in a preset time period in the terminal can be searched, if the log information can be searched, the browser used by the user can be obtained in the log information, and the target browser is determined, so that state information such as webpage login and the like of the user using the browser before can be reserved, webpage loading is accelerated by using a cache to a greater extent, and inconvenience of the user in accessing the webpage is reduced.
Wherein, the preset time period can be one week, one month or three months, etc.
And S207, analyzing the log information to obtain the use frequency of each browser of the terminal.
In the embodiment of the present invention, the use frequency of each browser in the log information may be counted, so that the target browser is determined according to the use frequency of each browser subsequently.
S208, selecting a target browser to be utilized based on the use frequency, and executing S2010.
In the embodiment of the present invention, a browser with the highest frequency of use may be selected as the target browser. Of course, a browser with a frequency of use greater than the threshold value may be determined as the target browser according to a preset threshold value of the frequency of use.
Specifically, a period of time closer to the current time, for example, 3 days, may be selected as the preset period of time, and then a browser with the highest frequency of use within 3 days may be selected as the target browser, and so on.
Obviously, the browser with high use frequency in the near term better conforms to the use habit of the user, and the inconvenience of the user for accessing the webpage can be reduced.
S209, when not found, regarding the default browser as the target browser to be utilized, and executing S2010.
It can be understood that if log information about a browser in the terminal within a preset time period is not found, it indicates that there is no browser in the terminal that the user is using, and there is no browser that the user has used. Then the default browser may be used as the target browser to be utilized and the web page may be opened using the default browser.
And S2010, sending the name of the target browser and the webpage address to an Application Program Interface (API) function of a system, so that the API function calls the target browser to open a target webpage corresponding to the webpage address.
Step S2010 is the same as step S104, and will not be described herein.
In the scheme provided by the embodiment of the invention, the target browser to be utilized is determined based on the searched browser running record. The browser running record comprises: the currently opened browser process or the log information about the browser in the preset time period includes the browser used by the user since the currently opened browser process corresponds to the browser being used by the user. In addition, in the embodiment of the present invention, the target browser is determined according to a certain priority order, that is, the browser that preferentially uses the desktop set-top state, the browser that is currently opened in the non-desktop set-top state, the browser that is used within the preset time period, and the browser that is default to the system. Therefore, compared with the prior art that a default browser is started to open a webpage, the browser determined based on the browser running record is a browser which meets the use habit of the user and is also a browser which meets the use expectation of the user, and therefore the purpose of reducing the inconvenience of the user in accessing the webpage can be achieved by the scheme provided by the embodiment of the invention.
Corresponding to the above method embodiment, an embodiment of the present invention further provides a device for opening a web page in client software, and as shown in fig. 3, the device includes:
an obtaining module 301, configured to obtain a click instruction about a web page address of a target web page;
a searching module 302, configured to search for a browser running record in the terminal;
a determining module 303, configured to determine, based on the found browser operation record, a target browser to be utilized;
a sending module 304, configured to send the name of the target browser and the web page address to an application program interface API function of the system, so that the API function calls the target browser to open a target web page corresponding to the web page address.
Optionally, in this embodiment of the present invention, the search module 302 is specifically configured to:
judging whether a browser process exists in a program process started by the terminal currently;
if yes, taking the browser process as a browser running record;
if the log information does not exist, the log information about the browser in the preset time period in the terminal is searched, and the searched log information is used as the browser running record.
Optionally, in this embodiment of the present invention, when the browser process runs as a browser record, the determining module 303 includes:
the judging submodule is used for judging whether a browser process with a desktop on top exists in the browser process;
the first determining submodule is used for determining a browser corresponding to the browser process with the desktop on top as a target browser to be utilized if the browser exists;
and the second determining submodule is used for selecting a target browser to be utilized from the browser corresponding to the currently started browser process according to a preset screening rule if the target browser does not exist.
Optionally, in the embodiment of the present invention, the determining sub-module is specifically configured to:
determining window information of the browser process;
and judging whether the corresponding browser is set to the top or not based on the window information.
Optionally, in this embodiment of the present invention, when log information about a browser in a preset time period is used as a browser running record, the determining module 303 is specifically configured to:
analyzing the log information to obtain the use frequency of each browser of the terminal;
based on the frequency of use, a target browser to be utilized is selected.
Optionally, in an embodiment of the present invention, the apparatus further includes:
and the default execution module is used for taking the default browser as a target browser to be utilized when the browser operation record in the terminal is not found, and executing the step of sending the name of the target browser and the webpage address to an Application Program Interface (API) function of a system so that the API function calls the target browser to open a target webpage corresponding to the webpage address.
In the scheme provided by the embodiment of the invention, the target browser to be utilized is determined based on the searched browser running record, and the browser to be utilized is called to open the webpage. The browser running record can reflect the use condition of the user to the browser, and the browser determined based on the browser running record is the browser which accords with the use habit of the user, so that compared with the prior art that a default browser is started to open a webpage, the scheme provided by the embodiment of the invention can reduce the inconvenience of the user for accessing the webpage.
Corresponding to the above method embodiments, the embodiment of the present invention further provides an electronic device, as shown in fig. 4, which may include a processor 401 and a memory 402, wherein,
the memory 402 for storing a computer program;
the processor 401 is configured to implement the steps of the method for opening a web page in client software according to the embodiment of the present invention when executing the program stored in the memory 402.
The Memory may include a RAM (Random Access Memory) or an NVM (Non-Volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
Through above-mentioned electronic equipment, can realize: and determining a target browser to be utilized based on the searched browser operation record, and then calling the browser to be utilized to open a webpage. The browser running record can reflect the use condition of the user to the browser, and the browser determined based on the browser running record is the browser which accords with the use habit of the user, so that compared with the prior art that a default browser is started to open a webpage, the scheme provided by the embodiment of the invention can reduce the inconvenience of the user for accessing the webpage.
For the embodiment of the electronic device, since the content of the related method is substantially similar to that of the foregoing embodiment of the method, the description is relatively simple, and for the relevant points, reference may be made to part of the description of the embodiment of the method.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (8)

1. A method for opening a webpage in client software is characterized in that the method is applied to the client software of a terminal and comprises the following steps:
obtaining a click instruction about a webpage address of a target webpage;
searching a browser running record in the terminal;
determining a target browser to be utilized based on the searched browser operation record;
and sending the name of the target browser and the webpage address to an Application Program Interface (API) function of a system, so that the API function calls the target browser to open a target webpage corresponding to the webpage address.
2. The method according to claim 1, wherein the step of searching the browser running record in the terminal comprises:
judging whether a browser process exists in a program process started by the terminal currently;
if yes, taking the browser process as a browser running record;
if the log information does not exist, the log information about the browser in the preset time period in the terminal is searched, and the searched log information is used as the browser running record.
3. The method according to claim 2, wherein when the browser process is used as a browser running record, the step of determining a target browser to be utilized based on the searched browser running record comprises:
judging whether a browser process with a desktop on top exists in the browser processes;
if yes, determining the browser corresponding to the browser process with the desktop on top as a target browser to be utilized;
and if not, selecting a target browser to be utilized from the browser corresponding to the currently started browser process according to a preset screening rule.
4. The method of claim 3, wherein the step of determining whether a desktop-top browser process exists in the browser processes comprises:
determining window information of the browser process;
and judging whether the corresponding browser is set to the top or not based on the window information.
5. The method according to claim 2, wherein when log information about browsers within a preset time period is used as a browser running record, the step of selecting a target browser to be utilized from at least one browser of the terminal based on the searched browser running record comprises:
analyzing the log information to obtain the use frequency of each browser of the terminal;
based on the frequency of use, a target browser to be utilized is selected.
6. The method according to any one of claims 1-5, further comprising:
and when the browser running record in the terminal is not found, taking a default browser as a target browser to be utilized, and executing the step of sending the name of the target browser and the webpage address to an Application Program Interface (API) function of a system so that the API function calls the target browser to open a target webpage corresponding to the webpage address.
7. An apparatus for opening a web page in client software, the apparatus being applied to the client software of a terminal, the apparatus comprising:
the acquisition module is used for acquiring a click command of a webpage address of a target webpage;
the searching module is used for searching the browser running record in the terminal;
the determining module is used for determining a target browser to be utilized based on the searched browser running record;
and the sending module is used for sending the name of the target browser and the webpage address to an Application Program Interface (API) function of a system so that the API function calls the target browser to open a target webpage corresponding to the webpage address.
8. An electronic device comprising a processor and a memory, wherein,
the memory is used for storing a computer program;
the processor, when executing the program stored in the memory, implementing the method steps of any of claims 1-6.
CN201810936340.3A 2018-08-16 2018-08-16 Method and device for opening webpage in client software and electronic equipment Pending CN110889066A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810936340.3A CN110889066A (en) 2018-08-16 2018-08-16 Method and device for opening webpage in client software and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810936340.3A CN110889066A (en) 2018-08-16 2018-08-16 Method and device for opening webpage in client software and electronic equipment

Publications (1)

Publication Number Publication Date
CN110889066A true CN110889066A (en) 2020-03-17

Family

ID=69744181

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810936340.3A Pending CN110889066A (en) 2018-08-16 2018-08-16 Method and device for opening webpage in client software and electronic equipment

Country Status (1)

Country Link
CN (1) CN110889066A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112214712A (en) * 2020-10-28 2021-01-12 新华三大数据技术有限公司 Automatic browser switching method and device, storage medium and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314516A (en) * 2011-09-22 2012-01-11 惠州Tcl移动通信有限公司 Webpage processing method and mobile terminal and electronic device thereof
CN104036019A (en) * 2014-06-25 2014-09-10 北京奇虎科技有限公司 Method and device for opening webpage links
US20140280482A1 (en) * 2013-03-15 2014-09-18 Amazon Technologies, Inc. Determining appropriate browsing applications for selected network resources
CN105320777A (en) * 2015-11-13 2016-02-10 北京金山安全软件有限公司 Application program recommendation method and device
CN105608172A (en) * 2015-12-21 2016-05-25 北京奇虎科技有限公司 Browser recommendation method and device
CN106020880A (en) * 2016-05-17 2016-10-12 北京金山安全软件有限公司 Browser starting method and device and electronic equipment
CN106897406A (en) * 2017-02-15 2017-06-27 中国联合网络通信集团有限公司 The method and device of switching browser mark
CN108268507A (en) * 2016-12-30 2018-07-10 北京搜狗科技发展有限公司 A kind of processing method based on browser, device and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314516A (en) * 2011-09-22 2012-01-11 惠州Tcl移动通信有限公司 Webpage processing method and mobile terminal and electronic device thereof
US20140280482A1 (en) * 2013-03-15 2014-09-18 Amazon Technologies, Inc. Determining appropriate browsing applications for selected network resources
CN104036019A (en) * 2014-06-25 2014-09-10 北京奇虎科技有限公司 Method and device for opening webpage links
CN105320777A (en) * 2015-11-13 2016-02-10 北京金山安全软件有限公司 Application program recommendation method and device
CN105608172A (en) * 2015-12-21 2016-05-25 北京奇虎科技有限公司 Browser recommendation method and device
CN106020880A (en) * 2016-05-17 2016-10-12 北京金山安全软件有限公司 Browser starting method and device and electronic equipment
CN108268507A (en) * 2016-12-30 2018-07-10 北京搜狗科技发展有限公司 A kind of processing method based on browser, device and electronic equipment
CN106897406A (en) * 2017-02-15 2017-06-27 中国联合网络通信集团有限公司 The method and device of switching browser mark

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112214712A (en) * 2020-10-28 2021-01-12 新华三大数据技术有限公司 Automatic browser switching method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
US11108807B2 (en) Performing rule-based actions for newly observed domain names
CN103246713B (en) A kind of Web browser method and device
CN110941500B (en) Interface display method and device
US20160320950A1 (en) Information search navigation method and apparatus
WO2022052396A1 (en) Advertisement blocking method and apparatus
CN109144392B (en) Method and device for processing gesture conflict and electronic equipment
WO2016176099A1 (en) Information search navigation method and apparatus
CN111368226A (en) Screening method and device, electronic equipment and computer readable storage medium
CN110889066A (en) Method and device for opening webpage in client software and electronic equipment
CN112565238A (en) Method for popping privacy policy, client and computer-readable storage medium
CN112084503A (en) Interception rule base generation method and device and electronic equipment
CN111625721B (en) Content recommendation method and device
CN108804195B (en) Page display method and device, server and client
CN108647197B (en) Information processing method, device and storage medium
CN113190697A (en) Image information playing method and device
CN110674386B (en) Resource recommendation method, device and storage medium
CN110888690A (en) Application starting method and device, electronic equipment and storage medium
CN112579952A (en) Page display method and device, storage medium and electronic equipment
CN112256654A (en) Document sharing method and device
CN112416500B (en) Information processing method and electronic equipment
WO2015149642A1 (en) Search method and apparatus
CN110785752A (en) Resource searching method and related product
CN113076284A (en) Image instant management method, device, equipment and storage medium
CN117407586A (en) Position recommendation method and device, electronic equipment and storage medium
CN110807005A (en) Folder icon adding method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200317