Movatterモバイル変換


[0]ホーム

URL:


CN104036019B - The open method and device of web page interlinkage - Google Patents

The open method and device of web page interlinkage
Download PDF

Info

Publication number
CN104036019B
CN104036019BCN201410294995.7ACN201410294995ACN104036019BCN 104036019 BCN104036019 BCN 104036019BCN 201410294995 ACN201410294995 ACN 201410294995ACN 104036019 BCN104036019 BCN 104036019B
Authority
CN
China
Prior art keywords
browser
webpage
specified
specified browser
application program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410294995.7A
Other languages
Chinese (zh)
Other versions
CN104036019A (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 360 Zhiling 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 LtdfiledCriticalBeijing Qihoo Technology Co Ltd
Priority to CN201410294995.7ApriorityCriticalpatent/CN104036019B/en
Publication of CN104036019ApublicationCriticalpatent/CN104036019A/en
Application grantedgrantedCritical
Publication of CN104036019BpublicationCriticalpatent/CN104036019B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明公开了一种网页链接的开启方法及装置。其中方法包括:在应用程序侧设置指定浏览器进行应用程序中网页链接的开启操作;检测到应用程序中打开网页的请求;确定出系统中已安装所述设置过的指定浏览器;调用用于启动指定浏览器的系统接口,并将所述网页的URL传递给该启动指定浏览器的系统接口,使得所述指定浏览器依据传递来的所述网页的URL开启所述网页链接。利用本方案,无需等待操作系统调用启动默认浏览器的系统接口开启对应的网页链接,应用程序直接调用启动指定浏览器的系统接口开启对应的网页链接,相比于现有技术,本方法打开新网页的速度较快,能够满足用户的需求。

The invention discloses a method and a device for opening a web page link. The method includes: setting a designated browser on the application program side to open the web page link in the application program; detecting the request to open the web page in the application program; determining that the specified browser has been installed in the system; calling the Start the system interface of the specified browser, and pass the URL of the webpage to the system interface for starting the specified browser, so that the specified browser opens the webpage link according to the transmitted URL of the webpage. With this solution, there is no need to wait for the operating system to call the system interface for starting the default browser to open the corresponding webpage link, and the application program directly calls the system interface for starting the specified browser to open the corresponding webpage link. Compared with the existing technology, this method opens a new The speed of the web page is fast and can meet the needs of users.

Description

Translated fromChinese
网页链接的开启方法及装置Method and device for opening webpage link

技术领域technical field

本发明涉及互联网技术领域,具体涉及一种网页链接的开启方法及装置。The invention relates to the technical field of the Internet, in particular to a method and device for opening webpage links.

背景技术Background technique

随着计算机技术和互联网技术的飞速发展,安装在电脑、手机、各种平板式设备中的应用程序越来越多,这些应用程序提供的功能也越来越强大。目前很多应用程序通过网页链接的形式提供了各种网络服务,用户直接点击应用程序中的网页链接就可便捷的享受网络服务。例如,在各种即时通讯软件中,用户可在聊天的同时向好友传送网页链接,好友可直接点击网页链接与用户共享网络信息;在Windows office的程序中,也可在各种office文件中嵌入网页链接,用户直接点击网页链接查看对应的网络信息。With the rapid development of computer technology and Internet technology, more and more application programs are installed in computers, mobile phones, and various tablet devices, and the functions provided by these application programs are also becoming more and more powerful. At present, many application programs provide various network services in the form of web page links, and users can conveniently enjoy network services by directly clicking the web page links in the application programs. For example, in various instant messaging software, users can send webpage links to friends while chatting, and friends can directly click on webpage links to share network information with users; in Windows office programs, it can also be embedded in various office files. Web page link, the user directly clicks on the web page link to view the corresponding network information.

现有技术中,如果用户在应用程序中点击某个网页链接,操作系统自动调用默认浏览器打开网页链接。具体来说,应用程序在检测到打开网页的请之后,先要向操作系统通知网页链接的开启请求,操作系统接收到该开启请求之后再调用启动默认浏览器的系统接口开启对应的网页链接。由于操作系统同时管理多个应用程序的进程,操作系统一般按照优先级顺序处理各个应用程序发送的请求,因此现有技术调用默认浏览器打开网页链接的处理速度较慢,不能满足用户的需求。In the prior art, if a user clicks a certain webpage link in an application program, the operating system automatically invokes a default browser to open the webpage link. Specifically, after the application program detects the request to open the webpage, it first notifies the operating system of the opening request of the webpage link, and after receiving the opening request, the operating system invokes the system interface for starting the default browser to open the corresponding webpage link. Since the operating system manages the processes of multiple application programs at the same time, the operating system generally processes the requests sent by each application program in order of priority. Therefore, the processing speed of calling the default browser to open the webpage link in the prior art is relatively slow, which cannot meet the needs of users.

发明内容Contents of the invention

鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的网页链接的开启方法及装置。In view of the above problems, the present invention is proposed to provide a method and device for opening webpage links that overcome the above problems or at least partially solve the above problems.

根据本发明的一个方面,提供了一种网页链接的开启方法,包括:According to one aspect of the present invention, a method for opening a webpage link is provided, including:

在应用程序侧设置指定浏览器进行应用程序中网页链接的开启操作;Set the specified browser on the application side to open the webpage link in the application;

检测到应用程序中打开网页的请求;A request to open a web page in the application is detected;

确定出系统中已安装所述设置过的指定浏览器;Determine that the specified browser that has been installed in the system has been installed;

调用用于启动指定浏览器的系统接口,并将所述网页的URL传递给该启动指定浏览器的系统接口,使得所述指定浏览器依据传递来的所述网页的URL开启所述网页链接。calling the system interface for starting the specified browser, and passing the URL of the webpage to the system interface for starting the specified browser, so that the specified browser opens the webpage link according to the transmitted URL of the webpage.

根据本发明的另一方面,提供了一种网页链接的开启装置,包括:According to another aspect of the present invention, a device for opening webpage links is provided, including:

设置模块,适于在应用程序侧设置指定浏览器进行应用程序中网页链接的开启操作;The setting module is suitable for setting a specified browser on the application program side to open the web page link in the application program;

检测模块,适于检测到应用程序中打开网页的请求;A detection module adapted to detect a request to open a webpage in an application;

判断模块,适于在所述检测模块检测到打开网页的请求之后,确定出系统中已安装所述设置过的指定浏览器;The judging module is adapted to determine that the set specified browser has been installed in the system after the detection module detects the request to open the webpage;

调用模块,适于调用用于启动指定浏览器的系统接口,并将所述网页的URL传递给该启动指定浏览器的系统接口,使得所述指定浏览器依据传递来的所述网页的URL开启所述网页链接。The calling module is suitable for invoking the system interface for starting the specified browser, and passing the URL of the webpage to the system interface for starting the specified browser, so that the specified browser opens according to the URL of the webpage delivered. The web page linked.

根据本发明提供的方案,应用程序侧提供了用于设置指定浏览器开启网页链接的功能,在进行相关设置之后,如果应用程序检测到打开网页的请求,则可在已安装指定浏览器的前提下,由应用程序直接调用系统接口,并将网页的URL传递给该启动指定浏览器的系统接口,使得指定浏览器依据传递来的网页的URL开启网页链接。利用本方案,无需等待操作系统调用启动默认浏览器的系统接口开启对应的网页链接,应用程序直接调用启动指定浏览器的系统接口开启对应的网页链接,相比于现有技术,本方法打开新网页的速度较快,能够满足用户的需求。According to the solution provided by the present invention, the application program side provides the function for setting the specified browser to open the web page link. After the relevant settings are made, if the application program detects the request to open the web page, it can be installed on the premise of the specified browser. Next, the application program directly invokes the system interface, and passes the URL of the webpage to the system interface for starting the specified browser, so that the specified browser opens the webpage link according to the URL of the transmitted webpage. With this solution, there is no need to wait for the operating system to call the system interface for starting the default browser to open the corresponding webpage link, and the application program directly calls the system interface for starting the specified browser to open the corresponding webpage link. Compared with the existing technology, this method opens a new The speed of the web page is fast and can meet the needs of users.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。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 components. In the attached picture:

图1示出了根据本发明一个实施例的网页链接的开启方法的流程图;FIG. 1 shows a flowchart of a method for opening a webpage link according to an embodiment of the present invention;

图2示出了根据本发明另一个实施例的网页链接的开启方法的流程图;FIG. 2 shows a flowchart of a method for opening a webpage link according to another embodiment of the present invention;

图3示出了根据本发明另一个实施例的网页链接的开启方法的流程图;FIG. 3 shows a flowchart of a method for opening a webpage link according to another embodiment of the present invention;

图4示出了根据本发明一个实施例的网页链接的开启装置的功能结构框图;Fig. 4 shows a functional structural block diagram of an apparatus for opening a web page link according to an embodiment of the present invention;

图5示出了根据本发明另一个实施例的网页链接的开启装置的功能结构框图。Fig. 5 shows a functional structural block diagram of an apparatus for opening a webpage link according to another 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 to 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.

图1示出了根据本发明一个实施例的网页链接的开启方法的流程图,如图1所示,该方法包括如下步骤:Fig. 1 shows a flowchart of a method for opening a webpage link according to an embodiment of the present invention. As shown in Fig. 1, the method includes the following steps:

步骤S100,在应用程序侧设置指定浏览器进行应用程序中网页链接的开启操作。Step S100, setting a designated browser on the application program side to open the web page link in the application program.

本实施例中,应用程序侧提供了用于设置指定浏览器开启网页链接的功能。也就是说,相比于现有技术,本发明对应用程序进行了改进,增加了用于设置指定浏览器开启网页链接的功能。在设置之后,将相关设置信息记录在应用程序的设置文件中。其中相关设置信息包含指定浏览器的信息,如指定浏览器的名称、类型、版本等信息。In this embodiment, the application program side provides a function for setting a specified browser to open a web page link. That is to say, compared with the prior art, the present invention improves the application program and adds a function for setting a specified browser to open a web page link. After setting, record the relevant setting information in the setting file of the application program. The relevant setting information includes the information of the specified browser, such as the name, type, version and other information of the specified browser.

步骤S101,检测到应用程序中打开网页的请求。In step S101, a request to open a web page in an application is detected.

应用程序侧实时检测应用程序中打开网页的请求。例如,用户A在使用即时通讯类软件的过程中收到用户B发送过来的某网页链接,用户A点击该网页链接,该即时通讯类软件能够检测到用户A点击网页链接的操作所触发的打开网页的请求。再例如,某用户在浏览word文件时,点击word文件中的某个链接,word程序能够检测到用户点击word文件中该链接的操作所触发的打开网页的请求。The application program side detects in real time the request to open the web page in the application program. For example, when user A receives a webpage link from user B while using instant messaging software, and user A clicks on the webpage link, the instant messaging software can detect that the user A clicks on the webpage link to open the webpage. Web page request. For another example, when a user clicks a certain link in the word file while browsing the word file, the word program can detect the request to open the webpage triggered by the operation of the user clicking the link in the word file.

步骤S102,确定出系统中已安装设置过的指定浏览器。Step S102, determining the designated browser that has been installed and configured in the system.

应用程序在检测到打开网页的请求之后,通过查询应用程序的设置文件中记录的信息获知在应用程序侧已经设置通过指定浏览器打开网页链接,并且获得浏览器的信息,则进一步确定系统是否已安装与该浏览器的信息对应的指定浏览器。After the application detects the request to open the webpage, it learns that the application has set the link to open the webpage through the specified browser by querying the information recorded in the setting file of the application, and obtains the information of the browser, then further determines whether the system has A specified browser corresponding to the information of the browser is installed.

步骤S103,调用用于启动指定浏览器的系统接口,并将网页的URL传递给该启动指定浏览器的系统接口,使得指定浏览器依据传递来的网页的URL开启网页链接。Step S103, calling the system interface for activating the specified browser, and passing the URL of the webpage to the system interface for activating the specified browser, so that the specified browser opens the webpage link according to the transmitted URL of the webpage.

在确定出系统中已安装设置过的指定浏览器之后,应用程序调用用于启动指定浏览器的系统接口,并将网页的URL传递给该启动指定浏览器的系统接口,使得指定浏览器依据传递来的网页的URL开启网页链接。After determining the specified browser installed and set in the system, the application calls the system interface for starting the specified browser, and passes the URL of the web page to the system interface for starting the specified browser, so that the specified browser passes the The URL of the coming webpage opens the webpage link.

根据本实施例提供的方法,应用程序侧提供了用于设置指定浏览器开启网页链接的功能,在进行相关设置之后,如果应用程序检测到打开网页的请求,则可在已安装指定浏览器的前提下,由应用程序直接调用系统接口,并将网页的URL传递给该启动指定浏览器的系统接口,使得指定浏览器依据传递来的网页的URL开启网页链接。利用本实施例提供的方法,无需等待操作系统调用启动默认浏览器的系统接口开启对应的网页链接,应用程序直接调用启动指定浏览器的系统接口开启对应的网页链接,相比于现有技术,本方法打开新网页的速度较快,能够满足用户的需求。According to the method provided in this embodiment, the application program side provides a function for setting a specified browser to open a web page link. After relevant settings are made, if the application program detects a request to open a web page, it can be installed in the specified browser. Under the premise, the application program directly invokes the system interface, and passes the URL of the webpage to the system interface for activating the specified browser, so that the specified browser opens the webpage link according to the URL of the transmitted webpage. With the method provided in this embodiment, there is no need to wait for the operating system to call the system interface for starting the default browser to open the corresponding webpage link, and the application program directly calls the system interface for starting the specified browser to open the corresponding webpage link. Compared with the prior art, This method can open a new web page quickly and can meet the needs of users.

图2示出了根据本发明另一个实施例的网页链接的开启方法的流程图,如图2所示,该方法包括如下步骤:Fig. 2 shows a flowchart of a method for opening a web page link according to another embodiment of the present invention. As shown in Fig. 2, the method includes the following steps:

步骤S200,在应用程序侧设置指定浏览器进行应用程序中网页链接的开启操作。Step S200, setting a designated browser on the application program side to open the web page link in the application program.

本实施例中,应用程序侧提供了用于设置指定浏览器开启网页链接的功能。也就是说,相比于现有技术,本发明对应用程序进行了改进,增加了用于设置指定浏览器开启网页链接的功能。在设置之后,将相关设置信息记录在应用程序的设置文件中。其中相关设置信息包含指定浏览器的信息,如指定浏览器的名称、类型、版本等信息。In this embodiment, the application program side provides a function for setting a specified browser to open a web page link. That is to say, compared with the prior art, the present invention improves the application program and adds a function for setting a specified browser to open a web page link. After setting, record the relevant setting information in the setting file of the application program. The relevant setting information includes the information of the specified browser, such as the name, type, version and other information of the specified browser.

可选地,应用程序侧提供有允许用户配置的选项,在选项被选中时,在应用程序侧设置指定浏览器进行应用程序中网页链接的开启操作。也就是说,应用程序侧提供的用于设置指定浏览器开启网页链接的功能可由用户决定是否启用,面向用户是友好的。Optionally, the application program side provides an option that allows the user to configure, and when the option is selected, a specified browser is set on the application program side to open the web page link in the application program. That is to say, the function provided by the application program side for setting a specified browser to open a web page link can be decided by the user whether to enable it, which is user-friendly.

步骤S201,检测到应用程序中打开网页的请求。In step S201, a request to open a webpage in an application is detected.

步骤S202,在系统默认安装路径下查找出指定浏览器的可执行文件;和/或,查找注册表是否记录有指定浏览器的可执行文件的路径,如有记录,则在注册表记录的路径下查找出指定浏览器的可执行文件。Step S202, find out the executable file of the specified browser under the default installation path of the system; and/or, check whether the path of the executable file of the specified browser is recorded in the registry, if there is a record, the path recorded in the registry Find out the executable file of the specified browser.

应用程序在检测到打开网页的请求之后,通过查询应用程序的设置文件中记录的信息获知在应用程序侧已经设置通过指定浏览器打开网页链接,并且获得浏览器的信息,则进一步确定系统是否已安装与该浏览器的信息对应的指定浏览器。本步骤具体给出了两种确定系统是否已安装指定浏览器的方法:一种是,在系统默认安装路径下查找指定浏览器的可执行文件;另一种是,查找注册表是否记录有指定浏览器的可执行文件的路径,如有记录,则在注册表记录的路径下查找出指定浏览器的可执行文件。After the application detects the request to open the webpage, it learns that the application has set the link to open the webpage through the specified browser by querying the information recorded in the setting file of the application, and obtains the information of the browser, then further determines whether the system has A specified browser corresponding to the information of the browser is installed. This step specifically gives two methods to determine whether the specified browser has been installed in the system: one is to search for the executable file of the specified browser in the default installation path of the system; the other is to check whether the specified browser is recorded in the registry. The path of the executable file of the browser, if there is a record, find out the executable file of the specified browser under the path recorded in the registry.

通常来说,在系统安装指定浏览器时,会在默认安装路径下进行安装,这样系统默认安装路径下会存储有指定浏览器的可执行文件,因此如果能够查找到该可执行文件就能确定系统已安装指定浏览器。但在某些特殊情况下,系统安装指定浏览器时会因为修改了安装路径将指定浏览器安装到其它路径下,但是系统会在注册表中写入指定浏览器的安装路径,所以还可查找注册表是否记录有指定浏览器的可执行文件的路径,如有记录,则在注册表记录的路径下查找出指定浏览器的可执行文件。Generally speaking, when the system installs the specified browser, it will be installed in the default installation path, so that the executable file of the specified browser will be stored in the default installation path of the system, so if the executable file can be found, it can be determined The specified browser is already installed on the system. However, in some special cases, when the system installs the specified browser, it will install the specified browser to another path because the installation path has been modified, but the system will write the installation path of the specified browser in the registry, so you can also find Whether the path of the executable file of the specified browser is recorded in the registry, if there is a record, the executable file of the specified browser is found under the path recorded in the registry.

本步骤给出了上述两种确定系统是否已安装指定浏览器的方法仅为本发明的示例,本发明不仅限于上述两种方法,还可以通过其它方法确定系统是否已安装指定浏览器。In this step, the above two methods for determining whether the specified browser has been installed in the system are only examples of the present invention, and the present invention is not limited to the above two methods, and other methods can also be used to determine whether the specified browser has been installed in the system.

步骤S203,对指定浏览器的可执行文件的签名进行验证。Step S203, verifying the signature of the executable file of the specified browser.

在确定系统已安装指定浏览器并获得指定浏览器的可执行文件之后,对指定浏览器的可执行文件的签名进行验证。具体来说,查询指定浏览器的可执行文件的签名,与应用程序的设置文件记录的浏览器的信息进行比对是否一致。例如,应用程序的设置文件记录的浏览器的信息为“360安全浏览器;V6.5版本”,查询指定浏览器的可执行文件的签名是否为360公司的安全浏览器,若是,则表明验证通过。After it is determined that the system has installed the specified browser and the executable file of the specified browser is obtained, the signature of the executable file of the specified browser is verified. Specifically, query whether the signature of the executable file of the specified browser is consistent with the information of the browser recorded in the setting file of the application program. For example, the browser information recorded in the setting file of the application program is "360 Secure Browser; V6.5 version", query whether the signature of the executable file of the specified browser is 360 Company's secure browser, if so, it indicates verification pass.

通过对指定浏览器的可执行文件的签名进行验证,可以避免恶意程序利用本方法启动其它浏览器打开网页链接,保证网络访问的安全性。By verifying the signature of the executable file of the specified browser, malicious programs can be prevented from using this method to start other browsers to open webpage links, thereby ensuring the security of network access.

步骤S204,在验证通过的情况下,调用用于启动指定浏览器的系统接口,并将网页的URL传递给该启动指定浏览器的系统接口,使得指定浏览器依据传递来的网页的URL开启网页链接。Step S204, in the case of passing the verification, call the system interface for starting the specified browser, and pass the URL of the webpage to the system interface for starting the specified browser, so that the specified browser opens the webpage according to the URL of the transmitted webpage Link.

在验证通过的情况下,应用程序直接调用用于启动指定浏览器的系统接口,并将网页的URL传递给该启动指定浏览器的系统接口。具体地,应用程序调用系统API:createprocess(360browser.exe;“http://www.360safe.com”),其中createprocess函数是WIN32API函数,用来创建一个新的进程和它的主线程,360browser.exe是这个新进程运行指定的可执行文件,http://www.360safe.com是传递给该系统API的参数,即网页的URL。在调用上述系统API之后,系统启动指定浏览器,并通过解析命令行得到网页的URL传递给指定浏览器,使得指定浏览器依据传递来的网页的URL开启网页链接。If the verification is passed, the application program directly invokes the system interface for starting the specified browser, and passes the URL of the webpage to the system interface for starting the specified browser. Specifically, the application program calls the system API: createprocess (360browser.exe; "http://www.360safe.com"), wherein the createprocess function is a WIN32API function, used to create a new process and its main thread, 360browser. exe is the specified executable file for this new process to run, and http://www.360safe.com is the parameter passed to the system API, that is, the URL of the webpage. After calling the above-mentioned system API, the system starts the specified browser, and passes the URL of the webpage obtained by parsing the command line to the specified browser, so that the specified browser opens the webpage link according to the URL of the transmitted webpage.

根据本实施例提供的方法,应用程序侧提供了用于设置指定浏览器开启网页链接的功能,在进行相关设置之后,如果应用程序检测到打开网页的请求,则可在已安装指定浏览器的前提下,由应用程序直接调用系统接口,并将网页的URL传递给该启动指定浏览器的系统接口,使得指定浏览器依据传递来的网页的URL开启网页链接。利用本实施例提供的方法,无需等待操作系统调用启动默认浏览器的系统接口开启对应的网页链接,应用程序直接调用启动指定浏览器的系统接口开启对应的网页链接,相比于现有技术,本方法打开新网页的速度较快,能够满足用户的需求。除此之外,通过指定浏览器开启对应的网页链接还可以第一时间检测网址的安全性,杜绝盗号木马、病毒造成隐私信息泄露,实时拦截网购钓鱼以及充值支付欺诈信息,以避免造成用户的财产损失,保证用户网络访问的安全性。According to the method provided in this embodiment, the application program side provides a function for setting a specified browser to open a web page link. After relevant settings are made, if the application program detects a request to open a web page, it can be installed in the specified browser. Under the premise, the application program directly invokes the system interface, and passes the URL of the webpage to the system interface for activating the specified browser, so that the specified browser opens the webpage link according to the URL of the transmitted webpage. With the method provided in this embodiment, there is no need to wait for the operating system to call the system interface for starting the default browser to open the corresponding webpage link, and the application program directly calls the system interface for starting the specified browser to open the corresponding webpage link. Compared with the prior art, This method can open a new web page quickly and can meet the needs of users. In addition, by specifying the browser to open the corresponding web link, you can also detect the security of the website at the first time, prevent the leakage of private information caused by hacking Trojans and viruses, and intercept online shopping phishing and recharge payment fraud information in real time, so as to avoid causing users’ fraud. Property loss, to ensure the security of user network access.

图3示出了根据本发明另一个实施例的网页链接的开启方法的流程图,如图3所示,该方法包括如下步骤:Fig. 3 shows a flowchart of a method for opening a web page link according to another embodiment of the present invention. As shown in Fig. 3, the method includes the following steps:

步骤S300,在应用程序侧设置指定浏览器进行应用程序中网页链接的开启操作。Step S300, setting a designated browser on the application program side to open the web page link in the application program.

步骤S301,检测到应用程序中打开网页的请求。In step S301, a request to open a webpage in an application is detected.

步骤S302,确定系统中是否已安装设置过的指定浏览器,若是,执行步骤S303;若否,执行步骤S305。Step S302, determine whether the specified browser has been installed in the system, if yes, execute step S303; if not, execute step S305.

步骤S303,对指定浏览器的可执行文件的签名进行验证。Step S303, verifying the signature of the executable file of the specified browser.

步骤S304,在验证通过的情况下,调用用于启动指定浏览器的系统接口,并将网页的URL传递给该启动指定浏览器的系统接口,使得指定浏览器依据传递来的网页的URL开启网页链接;本方法流程结束。Step S304, in the case of passing the verification, call the system interface for starting the specified browser, and pass the URL of the webpage to the system interface for starting the specified browser, so that the specified browser opens the webpage according to the URL of the transmitted webpage link; the flow of this method ends.

本实施例上述步骤S300-步骤S304的具体执行过程可以参见图2所示的实施例的描述,在此不再赘述。For the specific execution process of the above step S300 to step S304 in this embodiment, reference may be made to the description of the embodiment shown in FIG. 2 , which will not be repeated here.

步骤S305,调用用于启动系统默认浏览器的系统接口,并将网页的URL传递给该启动系统默认浏览器的系统接口,使得系统默认浏览器依据传递来的网页的URL开启网页链接;本方法流程结束。Step S305, call the system interface for starting the default browser of the system, and pass the URL of the webpage to the system interface of the default browser of the startup system, so that the default browser of the system opens the webpage link according to the URL of the webpage delivered; this method The process ends.

与图2所示的实施例不同的是,本方法在确定出系统中未安装设置过的指定浏览器的情况下,可以调用用于启动系统默认浏览器的系统接口,并将网页的URL传递给该启动系统默认浏览器的系统接口,使得系统默认浏览器依据传递来的网页的URL开启网页链接。Different from the embodiment shown in Figure 2, this method can call the system interface for starting the default browser of the system and pass the URL of the web page to Give the system interface of starting the default browser of the system, so that the default browser of the system opens the webpage link according to the URL of the webpage delivered.

作为另外一种实施方式,如果在确定出系统中未安装设置过的指定浏览器的情况下,也可以弹出对话框用于提示下载和/或安装指定浏览器。As another implementation manner, if it is determined that the configured specified browser is not installed in the system, a dialog box may also pop up for prompting to download and/or install the specified browser.

在上述各个实施例中,应用程序不仅限于是即时通讯类程序或office程序,还可以是输入法类程序或各种手机应用类程序。In each of the above embodiments, the application program is not limited to an instant messaging program or an office program, but may also be an input method program or various mobile phone application programs.

图4示出了根据本发明一个实施例的网页链接的开启装置的功能结构框图。如图4所示,该装置包括:设置模块400、检测模块401、判断模块402和调用模块403。Fig. 4 shows a functional structural block diagram of an apparatus for opening a webpage link according to an embodiment of the present invention. As shown in FIG. 4 , the device includes: a setting module 400 , a detection module 401 , a judging module 402 and a calling module 403 .

设置模块400,适于在应用程序侧设置指定浏览器进行应用程序中网页链接的开启操作。在设置之后,将相关设置信息记录在应用程序的设置文件中。其中相关设置信息包含指定浏览器的信息,如指定浏览器的名称、类型、版本等信息。The setting module 400 is adapted to set a specified browser on the application side to open the web page link in the application. After setting, record the relevant setting information in the setting file of the application program. The relevant setting information includes the information of the specified browser, such as the name, type, version and other information of the specified browser.

检测模块401,适于检测到应用程序中打开网页的请求。例如,用户A在使用即时通讯类软件的过程中收到用户B发送过来的某网页链接,用户A点击该网页链接,该即时通讯类软件的检测模块能够检测到用户A点击网页链接的操作所触发的打开网页的请求。再例如,某用户在浏览word文件时,点击word文件中的某个链接,word程序的检测模块能够检测到用户点击word文件中该链接的操作所触发的打开网页的请求。The detection module 401 is adapted to detect a request for opening a webpage in an application program. For example, when user A receives a webpage link sent by user B while using instant messaging software, user A clicks on the webpage link, and the detection module of the instant messaging software can detect the user A's operation of clicking the webpage link. Triggered request to open a web page. For another example, when a user clicks a certain link in the word file while browsing the word file, the detection module of the word program can detect the request to open the webpage triggered by the operation of the user clicking the link in the word file.

判断模块402,适于在检测模块401检测到打开网页的请求之后,确定出系统中已安装设置过的指定浏览器。判断模块402获得浏览器的信息,确定系统是否已安装与该浏览器的信息对应的指定浏览器。The judging module 402 is adapted to determine that the specified browser has been installed and configured in the system after the detecting module 401 detects the request to open the webpage. The judging module 402 obtains the information of the browser, and determines whether the specified browser corresponding to the information of the browser has been installed in the system.

调用模块403,适于调用用于启动指定浏览器的系统接口,并将网页的URL传递给该启动指定浏览器的系统接口,使得指定浏览器依据传递来的网页的URL开启网页链接。The calling module 403 is adapted to call the system interface for starting the specified browser, and pass the URL of the webpage to the system interface for starting the specified browser, so that the specified browser opens the webpage link according to the URL of the transmitted webpage.

根据本实施例提供的装置,应用程序侧提供了用于设置指定浏览器开启网页链接的功能,在进行相关设置之后,如果应用程序检测到打开网页的请求,则可在已安装指定浏览器的前提下,由应用程序直接调用系统接口,并将网页的URL传递给该启动指定浏览器的系统接口,使得指定浏览器依据传递来的网页的URL开启网页链接。利用本实施例提供的装置,无需等待操作系统调用启动默认浏览器的系统接口开启对应的网页链接,应用程序直接调用启动指定浏览器的系统接口开启对应的网页链接,相比于现有技术,本方法打开新网页的速度较快,能够满足用户的需求。According to the device provided in this embodiment, the application program side provides a function for setting a specified browser to open a web page link. After relevant settings are made, if the application program detects a request to open a web page, it can be installed in the specified browser. Under the premise, the application program directly invokes the system interface, and passes the URL of the webpage to the system interface for activating the specified browser, so that the specified browser opens the webpage link according to the URL of the transmitted webpage. With the device provided in this embodiment, there is no need to wait for the operating system to call the system interface for starting the default browser to open the corresponding webpage link, and the application program directly calls the system interface for starting the specified browser to open the corresponding webpage link. Compared with the prior art, This method can open a new web page quickly and can meet the needs of users.

图5示出了根据本发明另一个实施例的网页链接的开启装置的功能结构框图。如图5所示,该装置包括:设置模块500、检测模块501、判断模块502、验证模块503、调用模块504和提示模块505。Fig. 5 shows a functional structural block diagram of an apparatus for opening a webpage link according to another embodiment of the present invention. As shown in FIG. 5 , the device includes: a setting module 500 , a detection module 501 , a judging module 502 , a verification module 503 , a calling module 504 and a prompting module 505 .

设置模块500,适于在应用程序侧设置指定浏览器进行应用程序中网页链接的开启操作;进一步地,在选项被选中时,在应用程序侧设置指定浏览器进行应用程序中网页链接的开启操作。在设置之后,将相关设置信息记录在应用程序的设置文件中。其中相关设置信息包含指定浏览器的信息,如指定浏览器的名称、类型、版本等信息。The setting module 500 is suitable for setting a designated browser on the application side to perform the opening operation of the webpage link in the application; further, when the option is selected, setting the designated browser on the application side to perform the opening operation of the webpage link in the application . After setting, record the relevant setting information in the setting file of the application program. The relevant setting information includes the information of the specified browser, such as the name, type, version and other information of the specified browser.

检测模块501,适于检测到应用程序中打开网页的请求。The detection module 501 is adapted to detect a request for opening a web page in an application program.

判断模块502,适于在系统默认安装路径下查找指定浏览器的可执行文件;和/或,查找注册表是否记录有指定浏览器的可执行文件的路径,如有记录,则在注册表记录的路径下查找指定浏览器的可执行文件。通常来说,在系统安装指定浏览器时,会在默认安装路径下进行安装,这样系统默认安装路径下会存储有指定浏览器的可执行文件,因此如果能够查找到该可执行文件就能确定系统已安装指定浏览器。但在某些特殊情况下,系统安装指定浏览器时会因为修改了安装路径将指定浏览器安装到其它路径下,但是系统会在注册表中写入指定浏览器的安装路径,所以还可查找注册表是否记录有指定浏览器的可执行文件的路径,如有记录,则在注册表记录的路径下查找出指定浏览器的可执行文件。The judging module 502 is adapted to search for the executable file of the specified browser under the default installation path of the system; and/or, check whether the path of the executable file of the specified browser is recorded in the registry, and if there is a record, record it in the registry Find the executable file of the specified browser under the path. Generally speaking, when the system installs the specified browser, it will be installed in the default installation path, so that the executable file of the specified browser will be stored in the default installation path of the system, so if the executable file can be found, it can be determined The specified browser is already installed on the system. However, in some special cases, when the system installs the specified browser, it will install the specified browser to another path because the installation path has been modified, but the system will write the installation path of the specified browser in the registry, so you can also find Whether the path of the executable file of the specified browser is recorded in the registry, if there is a record, the executable file of the specified browser is found under the path recorded in the registry.

验证模块503,适于对指定浏览器的可执行文件的签名进行验证。具体来说,验证模块503查询指定浏览器的可执行文件的签名,与应用程序的设置文件记录的浏览器的信息进行比对是否一致。例如,应用程序的设置文件记录的浏览器的信息为“360安全浏览器;V6.5版本”,验证模块503查询指定浏览器的可执行文件的签名是否为360公司的安全浏览器,若是,则表明验证通过。The verification module 503 is adapted to verify the signature of the executable file of the specified browser. Specifically, the verification module 503 inquires whether the signature of the executable file of the specified browser is consistent with the information of the browser recorded in the setting file of the application program. For example, the information of the browser recorded in the setting file of the application program is "360 secure browser; V6.5 version", the verification module 503 inquires whether the signature of the executable file of the specified browser is the secure browser of 360 company, if so, It indicates that the verification is passed.

调用模块504,适于在验证模块503验证通过的情况下,调用用于启动指定浏览器的系统接口,并将网页的URL传递给该启动指定浏览器的系统接口,使得指定浏览器依据传递来的网页的URL开启网页链接。The calling module 504 is suitable for invoking the system interface for starting the designated browser when the verification by the verification module 503 is passed, and passing the URL of the web page to the system interface for starting the designated browser, so that the designated browser sends The URL of the webpage to open the webpage link.

在验证通过的情况下,调用模块504直接调用用于启动指定浏览器的系统接口,并将网页的URL传递给该启动指定浏览器的系统接口。具体地,调用模块504调用系统API:createprocess(360browser.exe;“http://www.360safe.com”),其中createprocess函数是WIN32API函数,用来创建一个新的进程和它的主线程,360browser.exe是这个新进程运行指定的可执行文件,http://www.360safe.com是传递给该系统API的参数,即网页的URL。在调用上述系统API之后,系统启动指定浏览器,并通过解析命令行得到网页的URL传递给指定浏览器,使得指定浏览器依据传递来的网页的URL开启网页链接。If the verification is passed, the calling module 504 directly calls the system interface for starting the specified browser, and passes the URL of the webpage to the system interface for starting the specified browser. Specifically, the call module 504 calls the system API: createprocess (360browser.exe; "http://www.360safe.com"), wherein the createprocess function is a WIN32API function, used to create a new process and its main thread, 360browser .exe is the specified executable file for this new process to run, and http://www.360safe.com is the parameter passed to the system API, that is, the URL of the webpage. After calling the above-mentioned system API, the system starts the specified browser, and passes the URL of the webpage obtained by parsing the command line to the specified browser, so that the specified browser opens the webpage link according to the URL of the transmitted webpage.

调用模块504还适于:在判断模块502确定出系统中未安装设置过的指定浏览器的情况下,调用用于启动系统默认浏览器的系统接口,并将网页的URL传递给该启动系统默认浏览器的系统接口,使得系统默认浏览器依据传递来的网页的URL开启网页链接。The calling module 504 is also suitable for: when the judging module 502 determines that the specified browser is not installed in the system, call the system interface for starting the system default browser, and pass the URL of the web page to the system default browser. The system interface of the browser enables the default browser of the system to open the webpage link according to the URL of the webpage delivered.

提示模块505,适于在判断模块502确定出系统中未安装设置过的指定浏览器的情况下,弹出对话框用于提示下载和/或安装指定浏览器的可执行文件。The prompt module 505 is adapted to pop up a dialog box for prompting to download and/or install the executable file of the specified browser when the judging module 502 determines that the specified browser is not installed in the system.

本实施例中,应用程序具体为即时通讯类程序、输入法类程序、office程序或手机应用类程序。In this embodiment, the application program is specifically an instant messaging program, an input method program, an office program or a mobile phone application program.

根据本实施例提供的装置,应用程序侧提供了用于设置指定浏览器开启网页链接的功能,在进行相关设置之后,如果应用程序检测到打开网页的请求,则可在已安装指定浏览器的前提下,由应用程序直接调用系统接口,并将网页的URL传递给该启动指定浏览器的系统接口,使得指定浏览器依据传递来的网页的URL开启网页链接。利用本实施例提供的装置,无需等待操作系统调用启动默认浏览器的系统接口开启对应的网页链接,应用程序直接调用启动指定浏览器的系统接口开启对应的网页链接,相比于现有技术,本装置打开新网页的速度较快,能够满足用户的需求。除此之外,通过指定浏览器开启对应的网页链接还可以第一时间检测网址的安全性,杜绝盗号木马、病毒造成隐私信息泄露,实时拦截网购钓鱼以及充值支付欺诈信息,以避免造成用户的财产损失,保证用户网络访问的安全性。According to the device provided in this embodiment, the application program side provides a function for setting a specified browser to open a web page link. After relevant settings are made, if the application program detects a request to open a web page, it can be installed in the specified browser. Under the premise, the application program directly invokes the system interface, and passes the URL of the webpage to the system interface for activating the specified browser, so that the specified browser opens the webpage link according to the URL of the transmitted webpage. With the device provided in this embodiment, there is no need to wait for the operating system to call the system interface for starting the default browser to open the corresponding webpage link, and the application program directly calls the system interface for starting the specified browser to open the corresponding webpage link. Compared with the prior art, The device can open new webpages quickly and can meet the needs of users. In addition, by specifying the browser to open the corresponding web link, you can also detect the security of the website at the first time, prevent the leakage of private information caused by hacking Trojans and viruses, and intercept online shopping phishing and recharge payment fraud information in real time, so as to avoid causing users’ fraud. Property loss, to ensure the security of user network access.

在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。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 understand that although some embodiments described 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 device for opening webpage links 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.

本发明公开了:The present invention discloses:

A1、一种网页链接的开启方法,包括:A1. A method for opening a webpage link, comprising:

在应用程序侧设置指定浏览器进行应用程序中网页链接的开启操作;Set the specified browser on the application side to open the webpage link in the application;

检测到应用程序中打开网页的请求;A request to open a web page in the application is detected;

确定出系统中已安装所述设置过的指定浏览器;Determine that the specified browser that has been installed in the system has been installed;

调用用于启动指定浏览器的系统接口,并将所述网页的URL传递给该启动指定浏览器的系统接口,使得所述指定浏览器依据传递来的所述网页的URL开启所述网页链接。calling the system interface for starting the specified browser, and passing the URL of the webpage to the system interface for starting the specified browser, so that the specified browser opens the webpage link according to the transmitted URL of the webpage.

A2、根据A1所述的方法,其中,所述应用程序侧提供有允许用户配置的选项,在所述选项被选中时,在应用程序侧设置指定浏览器进行应用程序中网页链接的开启操作。A2. The method according to A1, wherein the application program side provides an option that allows user configuration, and when the option is selected, a designated browser is set on the application program side to open the web page link in the application program.

A3、根据A1或A2所述的方法,其中,所述确定出系统中已安装所述设置过的指定浏览器进一步包括:A3. The method according to A1 or A2, wherein the determining that the specified browser has been installed in the system further includes:

在系统默认安装路径下查找出所述指定浏览器的可执行文件;和/或Find out the executable file of the specified browser under the default installation path of the system; and/or

查找注册表是否记录有所述指定浏览器的可执行文件的路径,如有记录,则在注册表记录的路径下查找出所述指定浏览器的可执行文件。Find whether the path of the executable file of the specified browser is recorded in the registry, and if there is a record, find out the executable file of the specified browser under the path recorded in the registry.

A4、根据A1-A3任一项所述的方法,其中,在调用用于启动指定浏览器的系统接口之前进一步包括:对所述指定浏览器的可执行文件的签名进行验证;A4. The method according to any one of A1-A3, wherein, before invoking the system interface for starting the specified browser, it further includes: verifying the signature of the executable file of the specified browser;

若验证通过,则执行调用用于启动指定浏览器的系统接口的步骤。If the verification is passed, the step of calling the system interface for starting the designated browser is executed.

A5、根据A1-A4任一项所述的方法,其中,所述方法还包括:A5. The method according to any one of A1-A4, wherein the method further comprises:

确定出系统中未安装所述设置过的指定浏览器;It is determined that the specified browser that has been set as described above is not installed in the system;

调用用于启动系统默认浏览器的系统接口,并将所述网页的URL传递给该启动系统默认浏览器的系统接口,使得所述系统默认浏览器依据传递来的所述网页的URL开启所述网页链接。Call the system interface for starting the default browser of the system, and pass the URL of the webpage to the system interface for starting the default browser of the system, so that the default browser of the system opens the described webpage according to the URL of the webpage passed. Web links.

A6、根据A1-A4任一项所述的方法,其中,所述方法还包括:A6. The method according to any one of A1-A4, wherein the method further comprises:

确定出系统中未安装所述设置过的指定浏览器;It is determined that the specified browser that has been set as described above is not installed in the system;

弹出对话框用于提示下载和/或安装所述指定浏览器。The pop-up dialog box is used to prompt to download and/or install the specified browser.

A7、根据A1-A6任一项所述的方法,其中,所述应用程序具体为即时通讯类程序、输入法类程序、office程序或手机应用类程序。A7. The method according to any one of A1-A6, wherein the application program is specifically an instant messaging program, an input method program, an office program or a mobile phone application program.

本发明还公开了:The invention also discloses:

B8、一种网页链接的开启装置,包括:B8. A device for opening webpage links, comprising:

设置模块,适于在应用程序侧设置指定浏览器进行应用程序中网页链接的开启操作;The setting module is suitable for setting a specified browser on the application program side to open the web page link in the application program;

检测模块,适于检测到应用程序中打开网页的请求;A detection module adapted to detect a request to open a webpage in an application;

判断模块,适于在所述检测模块检测到打开网页的请求之后,确定出系统中已安装所述设置过的指定浏览器;The judging module is adapted to determine that the set specified browser has been installed in the system after the detection module detects the request to open the webpage;

调用模块,适于调用用于启动指定浏览器的系统接口,并将所述网页的URL传递给该启动指定浏览器的系统接口,使得所述指定浏览器依据传递来的所述网页的URL开启所述网页链接。The calling module is suitable for calling the system interface for starting the specified browser, and passing the URL of the webpage to the system interface for starting the specified browser, so that the specified browser opens according to the URL of the webpage delivered. The web page linked.

B9、根据B8所述的装置,其中,所述应用程序侧提供有允许用户配置的选项,所述设置模块进一步适于:在所述选项被选中时,在应用程序侧设置指定浏览器进行应用程序中网页链接的开启操作。B9. The device according to B8, wherein the application program side provides options that allow user configuration, and the setting module is further adapted to: when the option is selected, set a specified browser on the application program side for application The opening operation of the web link in the program.

B10、根据B8或B9所述的装置,其中,所述判断模块进一步适于:B10. The device according to B8 or B9, wherein the judging module is further adapted to:

在系统默认安装路径下查找所述指定浏览器的可执行文件;和/或Find the executable file of the specified browser under the default installation path of the system; and/or

查找注册表是否记录有所述指定浏览器的可执行文件的路径,如有记录,则在注册表记录的路径下查找所述指定浏览器的可执行文件。Find whether the path of the executable file of the specified browser is recorded in the registry, and if there is a record, search for the executable file of the specified browser under the path recorded in the registry.

B11、根据B8-B10所述的装置,其中,还包括:验证模块,适于对所述指定浏览器的可执行文件的签名进行验证;B11. The device according to B8-B10, further comprising: a verification module adapted to verify the signature of the executable file of the specified browser;

所述调用模块进一步适于:在所述验证模块验证通过的情况下,调用用于启动指定浏览器的系统接口。The invoking module is further adapted to: invoking a system interface for starting a specified browser when the verification by the verification module is passed.

B12、根据B8-B11所述的装置,其中,所述调用模块还适于:在所述判断模块确定出系统中未安装所述设置过的指定浏览器的情况下,调用用于启动系统默认浏览器的系统接口,并将所述网页的URL传递给该启动系统默认浏览器的系统接口,使得所述系统默认浏览器依据传递来的所述网页的URL开启所述网页链接。B12. The device according to B8-B11, wherein the calling module is further adapted to: when the judging module determines that the specified browser that has been set is not installed in the system, call the default browser for starting the system The system interface of the browser, and the URL of the webpage is passed to the system interface for starting the default browser of the system, so that the default browser of the system opens the webpage link according to the URL of the webpage passed.

B13、根据B8-B11所述的装置,其中,还包括:提示模块,适于在所述判断模块确定出系统中未安装所述设置过的指定浏览器的情况下,弹出对话框用于提示下载和/或安装所述指定浏览器的可执行文件。B13. The device according to B8-B11, further comprising: a prompting module adapted to pop up a dialog box for prompting when the judging module determines that the specified browser that has been set is not installed in the system Download and/or install said specified browser executable.

B14、根据B8-B13所述的装置,其中,所述应用程序具体为即时通讯类程序、输入法类程序、office程序或手机应用类程序。B14. The device according to B8-B13, wherein the application program is specifically an instant messaging program, an input method program, an office program or a mobile phone application program.

Claims (14)

CN201410294995.7A2014-06-252014-06-25The open method and device of web page interlinkageActiveCN104036019B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201410294995.7ACN104036019B (en)2014-06-252014-06-25The open method and device of web page interlinkage

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201410294995.7ACN104036019B (en)2014-06-252014-06-25The open method and device of web page interlinkage

Publications (2)

Publication NumberPublication Date
CN104036019A CN104036019A (en)2014-09-10
CN104036019Btrue CN104036019B (en)2017-07-04

Family

ID=51466789

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201410294995.7AActiveCN104036019B (en)2014-06-252014-06-25The open method and device of web page interlinkage

Country Status (1)

CountryLink
CN (1)CN104036019B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105786540B (en)*2014-12-242019-03-05中国移动通信集团公司A kind of application management method and electronic equipment
CN104767827B (en)*2015-04-232018-10-16北京嘀嘀无限科技发展有限公司Start the method and apparatus of application
CN105574190B (en)*2015-12-242019-03-26珠海豹趣科技有限公司A kind of Web access method and device
CN107526972B (en)*2016-06-212019-12-10福建省天奕网络科技有限公司Method and system for hiding and transmitting large data quantity parameters between processes
CN106202217B (en)*2016-06-282019-12-03北京金山安全软件有限公司Webpage link access method and device and mobile terminal
CN107800611B (en)*2016-09-072021-06-18腾讯科技(深圳)有限公司Page switching method and page switching device
CN108804484A (en)*2017-05-052018-11-13平安科技(深圳)有限公司The data measures and procedures for the examination and approval, equipment and computer readable storage medium
CN110889066A (en)*2018-08-162020-03-17广州金山移动科技有限公司Method and device for opening webpage in client software and electronic equipment
CN110839009B (en)*2018-08-172023-01-31阿里巴巴集团控股有限公司Network access request processing method, device and system and electronic equipment
CN109862399A (en)*2018-12-142019-06-07珠海市小源科技有限公司It shows the method for rich media information, handle method, computer installation and the computer readable storage medium of rich media information
CN113704647B (en)*2021-08-112025-10-03青岛海尔科技有限公司 Method, device and electronic device for jumping to multiple types of pages
CN115202762B (en)*2022-09-132023-03-10北京达佳互联信息技术有限公司Application program control method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101976271A (en)*2010-11-192011-02-16上海合合信息科技发展有限公司Method for automatically extracting website and opening web page
CN102480557A (en)*2010-11-302012-05-30比亚迪股份有限公司 A method and system for managing mobile phone applications based on BREW platform
CN103731444A (en)*2012-10-112014-04-16北京睿思汇通移动科技有限公司Method for starting boundless communication, sharing and notification through mobile terminal browser

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101042694B (en)*2006-03-212011-06-08松下电器产业株式会社Method for accessing father page in the time of brewing web page

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101976271A (en)*2010-11-192011-02-16上海合合信息科技发展有限公司Method for automatically extracting website and opening web page
CN102480557A (en)*2010-11-302012-05-30比亚迪股份有限公司 A method and system for managing mobile phone applications based on BREW platform
CN103731444A (en)*2012-10-112014-04-16北京睿思汇通移动科技有限公司Method for starting boundless communication, sharing and notification through mobile terminal browser

Also Published As

Publication numberPublication date
CN104036019A (en)2014-09-10

Similar Documents

PublicationPublication DateTitle
CN104036019B (en)The open method and device of web page interlinkage
US12314781B2 (en)Sharing extension points to allow an application to share content via a sharing extension
CN104091125B (en)Handle the method and suspended window processing unit of suspended window
CN104035984B (en)Method for blocking popup windows in browser and device for blocking popup windows
WO2016086767A1 (en)Method, browser client, and device for achieving browser security
WO2013097666A1 (en)Sandbox technology based webpage browsing method and device
CN103268442B (en)A kind of method and apparatus realizing secure access video website
CN102916937B (en)A kind of method, device and client device tackling web page attacks
CN104463569A (en)Secure connection payment method and device
CN105635178B (en)Ensure the block type Network Access Method and device of safety
US20180343174A1 (en)Rule based page processing and network request processing in browsers
CN103793248B (en)Method and device for upgrading application program
WO2015183456A1 (en)Consistent extension points to allow an extension to extend functionality of an application to another application
WO2014071867A1 (en)Program processing method and system, and client and server for program processing
CN103823873B (en) Method, device and system for reading/writing browser setting items
WO2016086765A1 (en)Browser injection prevention method, browser client, and device
CN102938037B (en)A kind of plug-in unit call method for browser and plugin manager
CN103023976A (en)Device and method for extending browser application plug-ins
CN104375831B (en)Realize the methods, devices and systems of the webpage and inter-application communication on terminal device
CN103853851B (en)Document down loading method in browser and browser device
CN102446253B (en)Webpage trojan detection method and system
CN103916402B (en)Guard method and the device of file are downloaded to browser
CN106648770B (en)Generation method, loading method and device of application program installation package
CN102999611B (en)Browser calls method and plugin manager, the browser of plug-in unit
CN105592105A (en)Safety-guaranteed asynchronous network access method and safety-guaranteed asynchronous network access device

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
TR01Transfer of patent right
TR01Transfer of patent right

Effective date of registration:20220801

Address after:300450 No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science Park, Binhai New Area, Tianjin

Patentee after:3600 Technology Group 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.

TR01Transfer of patent right
TR01Transfer of patent right

Effective date of registration:20230714

Address after:1765, floor 17, floor 15, building 3, No. 10 Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after:Beijing Hongxiang Technical Service Co.,Ltd.

Address before:300450 No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science Park, Binhai New Area, Tianjin

Patentee before:3600 Technology Group Co.,Ltd.

CP03Change of name, title or address
CP03Change of name, title or address

Address after:1765, floor 17, floor 15, building 3, No. 10 Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after:Beijing 360 Zhiling Technology Co.,Ltd.

Country or region after:China

Address before:1765, floor 17, floor 15, building 3, No. 10 Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee before:Beijing Hongxiang Technical Service Co.,Ltd.

Country or region before:China


[8]ページ先頭

©2009-2025 Movatter.jp