CN109117216A - Browser pop-up creation method, electronic equipment and storage medium - Google Patents

Browser pop-up creation method, electronic equipment and storage medium Download PDF

Info

Publication number
CN109117216A
CN109117216A CN201810653722.5A CN201810653722A CN109117216A CN 109117216 A CN109117216 A CN 109117216A CN 201810653722 A CN201810653722 A CN 201810653722A CN 109117216 A CN109117216 A CN 109117216A
Authority
CN
China
Prior art keywords
pop
browser
dialog box
modal dialog
creation method
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
CN201810653722.5A
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 Minghua Alliance Technology Co Ltd
Original Assignee
Beijing Minghua Alliance 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 Minghua Alliance Technology Co Ltd filed Critical Beijing Minghua Alliance Technology Co Ltd
Priority to CN201810653722.5A priority Critical patent/CN109117216A/en
Publication of CN109117216A publication Critical patent/CN109117216A/en
Pending legal-status Critical Current

Links

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/451Execution arrangements for user interfaces

Landscapes

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

Abstract

The invention discloses a kind of browser pop-up creation method, electronic equipment and storage mediums, and wherein method includes: to obtain the host process of browser;Hiding modal dialog box is created in host process;Extension process is called, creates pop-up by parent window of modal dialog box.Browser pop-up creation method, electronic equipment and storage medium provided in an embodiment of the present invention, by the host process for obtaining browser, hiding modal dialog box is created in host process, due to modal dialog box and the same process of browser, it is possible to block to browser.Extension process is recalled, creates pop-up by parent window of modal dialog box, that is, can reach pop-up obstruction browser, and do not influence the effect of other processes.

Description

Browser pop-up creation method, electronic equipment and storage medium
Technical field
The present invention relates to a kind of browser interaction field more particularly to browser pop-up creation method, electronic equipment and deposit Storage media.
Background technique
Edge browser is the included browser of Win10 system, and more and more products have started the branch to the browser It holds and is compatible with.But the current browser has the following problems: in pop-up pop-up, can not block to Edge browser, use Family can still operate the other content on webpage, occur so as to cause the problem of certain logical miss.
Summary of the invention
For overcome the deficiencies in the prior art, one of the objects of the present invention is to provide a kind of browser pop-up creation sides Method, can not block to browser when solving the problems, such as existing browser pop-up pop-up.
The second object of the present invention is to provide a kind of electronic equipment, can not when solving existing browser pop-up pop-up The problem of browser is blocked.
An object of the present invention adopts the following technical scheme that realization:
A kind of browser pop-up creation method, comprising:
Obtain the host process of the browser;
Hiding modal dialog box is created in the host process;
Extension process is called, creates the pop-up by parent window of the modal dialog box.
Further, the browser is Edge browser.
Further, the pop-up includes input frame.
Further, it is described the pop-up is created as parent window using the modal dialog box after further include:
Monitoring users input is shown in the input frame of the pop-up without inputting the user with obtaining focus.
Further, the calling extension process includes:
The extension process is called by local message mechanism Native Message mode.
Further, described to create hiding modal dialog box in the host process and include:
Modal dialog box is created in the host process but is not imaged on the display module, or
Modal dialog box is created in the host process, the modal dialog box is imaged on the display module and described Pop-up is covered.
Further, it is described using the modal dialog box as parent window create prompting frame after further include:
It monitors for closing whether the close event of the pop-up is triggered;
If the close event for closing the pop-up is triggered, the modal dialog box and pop-up are closed.
Further, described monitor for closing the close event of the pop-up and whether being triggered includes:
Whether the closing key for detecting the pop-up is operated, or
Detect whether the pop-up meets preset closedown condition.
The second object of the present invention adopts the following technical scheme that realization:
A kind of electronic equipment, comprising: processor;
Memory;And program, wherein described program is stored in the memory, and is configured to by processor It executes, described program includes for executing above-mentioned method.
The invention further relates to a kind of computer readable storage mediums, are stored thereon with computer program, the computer journey Sequence is executed by processor above-mentioned method.
Compared with prior art, the beneficial effects of the present invention are: by obtain browser host process, created in host process Hiding modal dialog box is built, due to modal dialog box and the same process of browser, it is possible to block to browser.It adjusts again With extension process, using modal dialog box be parent window create pop-up, that is, can reach pop-up block browser, and do not influence other into The effect of journey.
Detailed description of the invention
Fig. 1 is browser pop-up creation method flow chart provided in an embodiment of the present invention;
Fig. 2 is electronic equipment schematic diagram provided in an embodiment of the present invention.
Specific embodiment
In the following, being described further in conjunction with attached drawing and specific embodiment to the present invention, it should be noted that not Under the premise of conflicting, new implementation can be formed between various embodiments described below or between each technical characteristic in any combination Example.
As shown in Figure 1, browser pop-up creation method provided in an embodiment of the present invention, comprising:
Step S101: the host process of the browser is obtained.
Preferably, the browser in the present embodiment can be Edge browser.
Step S102: hiding modal dialog box is created in the host process.
Preferably, using browser as parent window in host process, a hiding modal dialog box is created.Optionally, may be used It is not imaged on the display module with creating modal dialog box but modal dialog box in host process to keep modal dialog box hidden Modal dialog box is imaged on the display module and by pop-up institute alternatively, can also create modal dialog box in host process for hiding Covering is to make modal dialog box be hidden, wherein pop-up is using modal dialog box as parent window.
Step S103: calling extension process, creates the pop-up by parent window of the modal dialog box.
Preferably, extension process is called by local message mechanism (Native Message) mode, extension process is to work as Preceding modal dialog box is parent window, creates pop-up.Wherein, pop-up may include input frame.It should be understood that pop-up is also possible to Other types.
The creation method of browser pop-up provided in an embodiment of the present invention, since modal dialog box is in browser host process Middle creation, and the same process of browser, and it is invisible, only browser is blocked, extending process with modal dialog box is father Window creates pop-up, that is, can reach pop-up obstruction browser, and do not influence the effect of other processes, and user can be prevented to net Other content on page, which carries out operation, leads to the problem of browser logic confusion.
Preferably, after creating pop-up, monitoring users input is shown to pop-up without inputting user with obtaining focus In input frame.Wherein, user's input is not limited only to keyboard input, and the user for being also possible to other modes inputs, such as voice is defeated Enter.
Preferably, global hook is arranged for keyboard in advance, after creating pop-up on Edge browser, it is default to operate to keyboard Global hook, monitor all characters inputted, Keyboard Message forced in the input frame of forwarding.Listening to keyboard input When, the keyboard listened to input and the input of preset keyboard are compared, judge whether keyboard input is the keyboard for operating webpage Input;If so, the keyboard input to operation webpage intercepts, refusal executes the keyboard input of operation webpage.
In the prior art, since pop-up is by extension process creation, which can not be arranged to focus, need user Choose pop-up manually, could in pop-up input data, in the present embodiment, inputted by monitoring users, without with obtaining focus User's input is shown in the input frame of pop-up, can be realized no matter focus is whether on input frame, input can be completed Effect reduces the troublesome operation for choosing pop-up, promotes user experience.
Preferably, monitoring the close event for closing pop-up after creating prompting frame as parent window using modal dialog box Whether it is triggered, whether the closing key of specially detection pop-up is operated, or whether detection pop-up meets preset closing item Part.If the close event for closing pop-up is triggered, modal dialog box and pop-up are closed.For example, if user clicks the pass in pop-up It closes that button, input closes the shortcut key of pop-up or is more than scheduled number to the input of input frame in pop-up on keyboard, closes Close modal dialog box and pop-up.
As shown in Fig. 2, electronic equipment provided in an embodiment of the present invention, comprising: processor 11, memory 12 and program, Wherein program is stored in memory 12, and is configured to be executed by processor 11, and program includes above-mentioned for executing Method.
The method in electronic equipment and previous embodiment in the present embodiment be based on the same inventive concept under two sides Face is in front described in detail method implementation process, so those skilled in the art can be clear according to foregoing description Understand to Chu the implementation process of the electronic equipment in the present embodiment, in order to illustrate the succinct of book, details are not described herein again.
Electronic equipment in the embodiment of the present invention can be as be mounted with Edge browser mobile phone, smart phone, Laptop, digital broadcasting transmitter, PDA (personal digital assistant), PAD (tablet computer), PMP (portable multimedia broadcasting Put device), navigation device, the movable equipments, and DTV, desktop computer, server such as car-mounted device etc. it is fixed Equipment.
As seen through the above description of the embodiments, those skilled in the art can be understood that the present invention can It realizes by means of software and necessary general hardware platform.Based on this understanding, technical solution of the present invention essence On in other words the part that contributes to existing technology can be embodied in the form of software products.The invention further relates to one kind Computer readable storage medium, such as ROM/RAM, magnetic disk, CD, are stored thereon with computer program, and computer program is located Reason device executes above-mentioned method.
Browser pop-up creation method, electronic equipment and storage medium provided in an embodiment of the present invention are browsed by obtaining The host process of device creates hiding modal dialog box in host process, due to modal dialog box and the same process of browser, so can To block to browser.Extension process is recalled, creates pop-up by parent window of modal dialog box, that is, can reach pop-up resistance Browser is filled in, and does not influence the effect of other processes.
The above embodiment is only the preferred embodiment of the present invention, and the scope of protection of the present invention is not limited thereto, The variation and replacement for any unsubstantiality that those skilled in the art is done on the basis of the present invention belong to institute of the present invention Claimed range.

Claims (10)

1. a kind of browser pop-up creation method characterized by comprising
Obtain the host process of the browser;
Hiding modal dialog box is created in the host process;
Extension process is called, creates the pop-up by parent window of the modal dialog box.
2. browser pop-up creation method according to claim 1, which is characterized in that the browser is Edge browsing Device.
3. browser pop-up creation method according to claim 2, which is characterized in that the pop-up includes input frame.
4. browser pop-up creation method according to claim 3, which is characterized in that described to be with the modal dialog box Parent window creates after the pop-up further include:
Monitoring users input is shown in the input frame of the pop-up without inputting the user with obtaining focus.
5. browser pop-up creation method according to claim 1, which is characterized in that the calling extension process includes:
The extension process is called by local message mechanism Native Message mode.
6. browser pop-up creation method according to claim 1, which is characterized in that described to be created in the host process Hiding modal dialog box includes:
Modal dialog box is created in the host process but is not imaged on the display module, or
Modal dialog box is created in the host process, the modal dialog box is imaged on the display module and by the pop-up It is covered.
7. browser pop-up creation method according to claim 1, which is characterized in that described to be with the modal dialog box Parent window creates after prompting frame further include:
It monitors for closing whether the close event of the pop-up is triggered;
If the close event for closing the pop-up is triggered, the modal dialog box and pop-up are closed.
8. browser pop-up creation method according to claim 7, which is characterized in that the monitoring is for closing the bullet Whether the close event of window is triggered
Whether the closing key for detecting the pop-up is operated, or
Detect whether the pop-up meets preset closedown condition.
9. a kind of electronic equipment characterized by comprising processor;
Memory;And program, wherein described program is stored in the memory, and is configured to be held by processor Row, described program include requiring method described in 1-8 any one for perform claim.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program It is executed by processor the method as described in claim 1-8 any one.
CN201810653722.5A 2018-06-22 2018-06-22 Browser pop-up creation method, electronic equipment and storage medium Pending CN109117216A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810653722.5A CN109117216A (en) 2018-06-22 2018-06-22 Browser pop-up creation method, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810653722.5A CN109117216A (en) 2018-06-22 2018-06-22 Browser pop-up creation method, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN109117216A true CN109117216A (en) 2019-01-01

Family

ID=64821887

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810653722.5A Pending CN109117216A (en) 2018-06-22 2018-06-22 Browser pop-up creation method, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109117216A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023109561A1 (en) * 2021-12-17 2023-06-22 北京字跳网络技术有限公司 Modal window control method and apparatus, device, and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1410909A (en) * 2001-09-27 2003-04-16 因特国风网络软件有限公司 Resolving method of internet keyword and system thereof
CN102915251A (en) * 2012-03-08 2013-02-06 北京金山安全软件有限公司 Method and device for processing message by multi-page browser
CN103235737A (en) * 2013-04-08 2013-08-07 厦门市美亚柏科信息股份有限公司 Frameset-based browser dialog box simulation method
CN103793282A (en) * 2012-11-02 2014-05-14 阿里巴巴集团控股有限公司 Browser and tab ending method thereof
CN107864289A (en) * 2017-11-17 2018-03-30 珠海市魅族科技有限公司 A kind of pronunciation inputting method and device, terminal, readable storage medium storing program for executing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1410909A (en) * 2001-09-27 2003-04-16 因特国风网络软件有限公司 Resolving method of internet keyword and system thereof
CN102915251A (en) * 2012-03-08 2013-02-06 北京金山安全软件有限公司 Method and device for processing message by multi-page browser
CN103793282A (en) * 2012-11-02 2014-05-14 阿里巴巴集团控股有限公司 Browser and tab ending method thereof
CN103235737A (en) * 2013-04-08 2013-08-07 厦门市美亚柏科信息股份有限公司 Frameset-based browser dialog box simulation method
CN107864289A (en) * 2017-11-17 2018-03-30 珠海市魅族科技有限公司 A kind of pronunciation inputting method and device, terminal, readable storage medium storing program for executing

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023109561A1 (en) * 2021-12-17 2023-06-22 北京字跳网络技术有限公司 Modal window control method and apparatus, device, and storage medium
US11966762B2 (en) 2021-12-17 2024-04-23 Beijing Zitiao Network Technology Co., Ltd. Modal window control method and apparatus, device, and storage medium

Similar Documents

Publication Publication Date Title
US11190478B1 (en) Enhanced user interfaces and associated processes in email communication
US8656294B2 (en) User interface for a touch sensitive display on an electronic device
US9886430B2 (en) Entity based content selection
US8250471B2 (en) Electronic devices and method for controlling the user interface thereof
CN106991304B (en) Message processing method and device
US20160054907A1 (en) Brightness Adjustment Method and Device and Electronic Device
US20160182430A1 (en) Optimizing view of messages based on importance classification
US8786563B2 (en) Mobile terminal and method of controlling the same
US9582471B2 (en) Method and apparatus for performing calculations in character input mode of electronic device
CN104598100B (en) A kind of information processing method and electronic equipment
CN102819436B (en) A kind of user interface interaction method and apparatus based on webpage mailbox
CN103677575A (en) Method for displaying unread message contents and electronic device thereof
CN106681584A (en) Method for optimizing application display and terminal
CN107967249A (en) A kind of word storage method and device
CN105335383B (en) Input information processing method and device
US11275486B2 (en) Restructuring view of messages based on configurable persistence
WO2023005828A1 (en) Message display method and apparatus, and electronic device
KR20140113155A (en) Mobile device and control method for the same
US20160196013A1 (en) Electronic device and method of controlling display of information
CN106445283A (en) Emoticon acquisition method and terminal
CN109117216A (en) Browser pop-up creation method, electronic equipment and storage medium
US10241669B2 (en) Touchscreen device
US20160313910A1 (en) Method and device for organizing a plurality of items on an electronic device
CN108256047A (en) Manage method, terminal device and the computer-readable medium of default application
CN106775184B (en) APP tab display method 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

Application publication date: 20190101

RJ01 Rejection of invention patent application after publication