Wednesday, March 6, 2013

Frequently Used Methods


Browser Close Button detection using JavaScript


    window.onbeforeunload = confirmClose;
            function confirmClose(e){
                var Confirm_Close = "0";
                if(Confirm_Close=="0")
                {
                    var msg = "Are you sure?";
                    if (e) {
                        e.returnValue = msg;
                    }

                    return msg;
                }
                else{
                    Confirm_Close="0";
                }
            }



Detect any hyperlinks detection event


$(".pageclass a").click(function()
{
});


Relief from tool-tip headache

http://jqueryui.com/tooltip/#tracking

No comments:

Post a Comment

Please include your thoughts/suggestion to make it as a better blog. If you find it useful, Please update with your valuable comments, so that others can use it.