Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // funcion
- function PopupCenter(url, title, w, h) {
- // Fixes dual-screen position Most browsers Firefox
- var dualScreenLeft = window.screenLeft != undefined ? window.screenLeft : screen.left;
- var dualScreenTop = window.screenTop != undefined ? window.screenTop : screen.top;
- var width = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width;
- var height = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height;
- var left = ((width / 2) - (w / 2)) + dualScreenLeft;
- var top = ((height / 2) - (h / 2)) + dualScreenTop;
- var newWindow = window.open(url, title, 'scrollbars=yes, width=' + w + ', height=' + h + ', top=' + top + ', left=' + left);
- // Puts focus on the newWindow
- if (window.focus) {
- newWindow.focus();
- }
- }
- 'llamado :
- Case 12300 'Informe de Puertas / Permisos
- objLink.ImageUrl = "../images/images_Adm/Informe_Puertas.gif"
- objLink.Attributes.Add("onClick", "WinOpen( 1, 'Mantencion/Informe_Pfl_Pue.aspx', 'window2', 900,900,50,50)")
- objCell.Controls.Add(objLink)
- objCell.HorizontalAlign = HorizontalAlign.Center
- objrow.Cells.Add(objCell)
- objCell = New TableCell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement