Below code is to open the link with disabled address bar and toolbar using javascript.
We have window.open() method to get the link in new window and before this we set some attributes to new window in strWindowFeatures.
Also, you can use this code for ASP.NET Hyperlink tag.
Copy this code and save it as filename.html to get the result.
<html>
<head>
<script>
var
windowObjectReference;
var strWindowFeatures="height="+screen.height+",width="+screen.width+",fullscreen=yes,menubar=no,location=no,resizable=no,scrollbars=yes,status=no";
function
openRequestedPopup()
{
windowObjectReference=window.open("http://www.google.co.in/","Google",strWindowFeatures);
}
</script>
</head>
<body>
<form>
<a
href="#" onClick="openRequestedPopup()">Click</a>
</form>
</body>
</html>
No comments:
Post a Comment