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

    variabili da iframe a iframe

    potreste dirmi come faccio da un link in un iframe ad inviare un valore ad una textbox che si trova in un altro iframe


    grazie

  2. #2

  3. #3
    Utente di HTML.it L'avatar di badaze
    Registrato dal
    Jun 2002
    residenza
    Lyon
    Messaggi
    5,372
    FILE : TEST187.HTML
    codice:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    
    <html>
    <head>
    <title>Untitled</title>
    <script language="JavaScript" type="text/javascript">
    <!--
    function manda() {
     valore = document.frames("if1").document.getElementById('t1').value;
     document.frames("if2").document.getElementById('t1').value = valore;
    }
    //-->
    </script>
    
    </head>
    <body>
    <iframe src="test187b.html" name="if1" id="if1">
    
    </iframe>
    <iframe src="test187c.html" name="if2" id="if2">
    
    </iframe>
    
    
    manda
    
    </body>
    </html>
    FILES : test187b.html e test187b.html
    codice:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    
    <html>
    <head>
    <title>Untitled</title>
    </head>
    <body>
     <input type="text" id="t1">
    </body>
    </html>

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.