简体   繁体   中英

Javascript - Show a pop-up window onChange

I want to show a html pop-up window, onChange from an input text to another.

How can I do that ?

Thanks a lot.

Here's a jQuery solution:

HTML

<form ...>
   <input type="text" id="first"/>
   <input type="text" id="second"/>
</form>

JavaScript

$(function ()
{
    $('#first').blur(function ()
    {
        alert('show the popup here');
    });
});

Basic demo .

window.open() demo . Disclaimer: this behavior is extremely annoying to users.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM