Visualizzazione dei risultati da 1 a 4 su 4
  1. #1
    Utente di HTML.it
    Registrato dal
    Oct 2009
    Messaggi
    1,085

    apertura di una nuova finestra .. dimensioni

    Ciao ..
    qual'è il mdo per assegnare una dimensione alla finestra da aprire con un 'link' (chiaramente con target=”_blank”)
    Grazie

  2. #2
    Utente bannato
    Registrato dal
    Sep 2009
    Messaggi
    1,737
    codice:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Documento senza titolo</title>
    <script type="text/javascript" language="JavaScript">
    <!--
    function winOpen(URL, windowName, width, height, left, top, resizable, location, menubar, scrollbars, status, toolbar, directories){
    	var windowFeatures;
    	windowFeatures = '';
    	if (width != '')
    		windowFeatures = windowFeatures+'width='+width+',';
    	if (height != '')
    		windowFeatures = windowFeatures+'height='+height+',';
    	if (left != '')
    		windowFeatures = windowFeatures+'left='+left+',';
    	if (top != '')
    		windowFeatures = windowFeatures+'top='+top+',';
    	if (resizable)
    		windowFeatures = windowFeatures+'resizable,';
    	if (location)
    		windowFeatures = windowFeatures+'location,';
    	if (menubar)
    		windowFeatures = windowFeatures+'menubar,';
    	if (scrollbars)
    		windowFeatures = windowFeatures+'scrollbars,';
    	if (status)
    		windowFeatures = windowFeatures+'status,';
    	if (toolbar)
    		windowFeatures = windowFeatures+'toolbar,';
    	if (directories)
    		windowFeatures = windowFeatures+'directories,';
    	window.open(URL, windowName, windowFeatures);
    }
    
    //-->
    </script>
    
    </head>
    
    <body>
    Apri finestra
    </body>
    </html>

  3. #3
    Utente di HTML.it
    Registrato dal
    Oct 2009
    Messaggi
    1,085
    grazie mille !
    c'è un modo per testare se i popup sono attivi ?
    .. quindi in caso contrario mandare una segnalazione ?
    grazie

    ah .. visto che sei stato così gentile ..
    potresti completare l'opera segnando cosa indicano i parametri ?
    (alcuni abbastanza ovvi .. altri facendo una prova sinceramente non ho colto)

    URL,
    windowName,
    width,
    height,
    left,
    top,
    resizable,
    location,
    menubar,
    scrollbars,
    status,
    toolbar,
    directories

    return false

  4. #4
    Utente di HTML.it
    Registrato dal
    Oct 2009
    Messaggi
    1,085
    nessuno .. !?

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.