#StackBounty: #javascript #html #google-chrome #custom-protocol When i try to invoke my registered protocols one after other ,only one …

Bounty: 50

  1. I have registered two protocols.
  2. When i try to invoke both protocols in same event,only one invoke at a time in Chrome browser.
$(function () {
    $("div[href]").click(function (event) {
        debugger;
        //for validation purpose.
        window.location = "abcd:";

       //if it is validated then
        window.location ="xyz:";



    });
});
<!DOCTYPE html>
<html>

<head lang="en">
    <meta charset="UTF-8">
    <title>Custom Protocol Detection</title>
</head>

<body id="abcd">
    <h1>Click one of these labels:</h1>
    <a href="#" id="atemp"></a>
    
Non-exist protocol
Send email
https://code.jquery.com/jquery-1.11.2.min.js http://example.js </body> </html>
  1. Please let me know how do i invoke both protocols in same event.


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.