How to get popupwindow

Posted by Oswaldlily under C# on 4/24/2013 | Points: 10 | Views : 1895 | Status : [Member] | Replies : 2
I need popupwindow at right bottom corner like skype message displays...

how to get popupwindow?




Responses

Posted by: Satyapriyanayak on: 4/24/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
<html>
<head>
<title>PopUp Window</title>

<script type="text/javascript">
function popup(url) {
var width = 300;
var height = 200;
var left = (screen.width - width) / 2;
var top = (screen.height - height) / 2;
var params = 'width=' + width + ', height=' + height;
params += ', top=' + top + ', left=' + left;
params += ', toolbar=no';
params += ', menubar=no';
params += ', resizable=yes';
params += ', directories=no';
params += ', scrollbars=no';
params += ', status=no';
params += ', location=no';
newwin = window.open(url, 'd', params);
if (window.focus)
{
newwin.focus()
}
return false;
}
</script>


</head>
<form>

<input type="button" value="Click me" onclick="popup('http://www.google.com')">
</form>

</html>



If this post helps you mark it as answer
Thanks

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Oswaldlily on: 4/24/2013 [Member] Starter | Points: 25

Up
0
Down
@Satyapriyanayak
I m getting window as ur code..
I have image inside that popupwindow..

I need only image to get popup..
i don want that url tab and window (which includes that image)

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response