I have view page. It was done using Html.ActionLink
. But now my boss said I need to click anywhere on the page should open another page. I have some code it will open new tab can you give some help
<script type="text/javascript">
var popup = function () {
window.open('@Url.Action("UserLogin", "UserLogin")');
}
</script>
<body onclick="popup()">
<h1 class="dd">Click anywhere!</h1>
</body>
And this will open top only. Can you help me out about this one? i need to click anywhere on the view page and open same page.