<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>右键跳转示例</title>
<script>
function goToLink(event) {
event.preventDefault(); // 阻止默认的右键菜单弹出
window.location.href = 'https://www.example.com'; // 替换为你想要跳转的超链接
}
</script>
</head>
<body oncontextmenu="goToLink(event)">
尝试在此区域点击鼠标右键。
</body>
</html>