Visualizzazione dei risultati da 1 a 9 su 9
  1. #1

    [JavaScript] opener.close();

    Ho aperto una pagina con window.open() e poi vorrei chiudere la pagina che la ha aperta, qual è la sintassi corretta??

    <!--
    window.opener.close();
    document.location.href = \"home.php\";
    //-->

    non funza

    <!--
    opener.close();
    document.location.href = \"home.php\";
    //-->

    idem
    GdR Online - http://lenar.it/
    Yesterday is history. Tomorrow is mystery.
    Today is a gift. That's why it's called the present

  2. #2
    da dove vuoi chiuderla?
    dalla stessa popup?

    in tal caso:

    codice:
    window.close();
    se la vuoi chiudere dalla pagina-madre:

    codice:
    nomefinestra.window.close();
    ciao

  3. #3
    vorrei chiudere la pagina madre dalla popup, ma se faccio window.close() mi chiude la popup.
    GdR Online - http://lenar.it/
    Yesterday is history. Tomorrow is mystery.
    Today is a gift. That's why it's called the present

  4. #4
    Originariamente inviato da Vre
    vorrei chiudere la pagina madre dalla popup, ma se faccio window.close() mi chiude la popup.
    ops, allora fai così:

    codice:
    window.opener.window.close();

  5. #5
    Grazie!!

    Ma perché con IE (non con FF)

    codice:
    window.open
    ('login.php','aaa','width='+screen.width+',height='+screen.height+',left=0,top=0,rezizable')
    mi copre la barra di Win (quella con Start e tutte le applicazioni)? E' dovuto a quello +screen.height+?
    GdR Online - http://lenar.it/
    Yesterday is history. Tomorrow is mystery.
    Today is a gift. That's why it's called the present

  6. #6
    upz
    GdR Online - http://lenar.it/
    Yesterday is history. Tomorrow is mystery.
    Today is a gift. That's why it's called the present

  7. #7
    perchè non la apri in fullscreen?

  8. #8
    Se la metto fullscreen con IE mi si vede a tutto schermo senza possibilità di chiuderla (con la X) e senza la barra di Win sotto.
    GdR Online - http://lenar.it/
    Yesterday is history. Tomorrow is mystery.
    Today is a gift. That's why it's called the present

  9. #9
    Utente di HTML.it L'avatar di Xinod
    Registrato dal
    Sep 2000
    Messaggi
    13,649
    prova ad usare screen.availHeight
    ciao

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 © 2024 vBulletin Solutions, Inc. All rights reserved.