开发者

Javascript - Show a pop-up window onChange

I want to show a html pop-up window, onChange from an input text开发者_如何学JAVA 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜