1) <script type="text/javascript">
function popWin()
{
window.open('http://msdn.microsoft.com','','');
}
</script>
function popWin()
{
window.open('http://msdn.microsoft.com','','');
}
</script>
2) call the above script in button click event or
in the properties of button set
OnClientClick = popWin()
thats it.......
it open the url in new window
we can give it like this also..
<head>
<script>
function popWin(){
window.open('http://msdn.microsoft.com', 'height=355,width=710,top=150,left=150,status=no,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,copyhistory=false', '');
}
</script>
</head>
-----------------------------------------------------
or--------------
<script type="text/javascript">
function popup()
{
////paisalive popup
var url = "http://www.PaisaLive.com/register.asp?928456-4349429";
win= window.open(url,'welcome','widht=300,height=500,menubar=yes,status=yes,location=yes,toolbar=yes,scrollbars=yes,resizable=yes'); if (win)
{
win.blur();
setTimeout('win.focus();',5000);
}
}
</script>
No comments:
Post a Comment