JSFiddle - React, Tailwind, and code Playground

by anil001ry

JavaScript

var r = confirm(
      "Hi"
    );
    if (r == true) {
      
      console.log("***** User Clicked (OK) Reload !!");
      
      window.location.href = "intent://scan/what-is-the-intent-to-launch-any-website-link-in-google-chrome#Intent;scheme=http;package=com.android.chrome;end";
      
    } else {
     
      console.log("***** User Clicked  Reject Navigating To Error Page !!");
      if (someEventHappened) return; // Will prevent subsequent code from being executed
      alert("This alert will never be shown.");
    }