The code was written in JavaScript.That program creates a link . Then the user can move the mouse on the link then it opens a new window. The button was created using the asp function. That program was should save into .aspx extension.
window.open(URL, name, specs, replace)
<script>
function openlink()
{
window.open("https://www.google.com","_blank")
}
</script>
<html>
<head>
<title>Mouse Over Event</title>
</head>
<body>
<form runat="server">
<asp:LinkButton Text="Move Mouse Over the Link to open!" OnmouseOver="openlink()" runat="server" />
</form>
</body>
</html>
Leave a Reply