Reputation: 83
Here is my code.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>repl.it</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<script src="script.js"></script>
<a href="https://mail.google.com" target="_blank">go email</a>
<br><br>
<a href="https://calendar.google.com/" target="_blank">go calendar</a>
</body>
</html>
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.
Upvotes: 0
Views: 88
Reputation: 3116
When you change your account, you can see that google changes a part in the url as well.
For example:
https://calendar.google.com/calendar/u/0/r
changes to
https://calendar.google.com/calendar/u/1/r
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.
https://calendar.google.com/calendar/u/[email protected]
opens the calander for the user [email protected]
.
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.
Upvotes: 1