A double link will open with one click. You can try this HTML code, it will be very helpful.
--------------------------1st HTML----------------------
<a href="2nd link" onclick="window.opens('1st link'); return true;"><button onclick="openTwoLinks()">text here</button></a>
--------------------------2nd HTML---------------------
<a href="1st link" onclick="window.open('2nd link'); return true;">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Colored Button</title>
<style>
/* Button Styling */
border: none;
border-radius: 8px;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
}
/* Hover Effect */
.color-button:hover {
background-color: #0056b3; /* Darker blue */
transform: scale(1.05);
}
/* Active Click Effect */
.color-button:active {
background-color: #004085;
transform: scale(0.98);
}
</style>
</head>
<body>
<button class="color-button">text here</button>
</body>
</a>

0 Comments