How can i go specific user email inbox or google calendar and all other google application

Here is my code.

<!DOCTYPE html>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <link href="style.css" rel="stylesheet" type="text/css" />
   <script src="script.js"></script>
   <a href="" target="_blank">go email</a>
   <a href="" target="_blank">go calendar</a>

enter image description here

But when I click both link server is redirect me on default email inbox and google calendar (that is set in my browser). And i have multiple user login in my chrome browser.So i want to go specific user email address.

My question is that how can i go particular user email or calendar.

Thanks in advance.

1 answer

  • answered 2021-06-10 13:30 Sven Eberth

    When you change your account, you can see that google changes a part in the url as well.

    For example:

    changes to

    The ID (0, 1) seems to be the order in which you logged in.

    I tried what happens when you replace this ID by an email. And it seems to work.

    opens the calander for the user

    Note: I didn't find any official docs etc. describing this. So maybe this will work for you or not. Of course google can change this whenever at any time. I would not rely on it and would not use it in production.