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

    dovrei copiare una sottosringa da 10 al venti

    <HTML>
    <body bgcolor="#FFFFFF">
    http://www.prova.it/francesco/prova.html
    <SCRIPT language="JScript">
    // var t = "francesco"; // <--- così funziona
    var t = document.location; // <--- cos' no
    document.write(t.substr(3,4));
    </SCRIPT>
    </HTML>

    Dovrei copiare solamente francesco
    :quote

  2. #2
    prova cosi' (se ho ben capito):

    codice:
    var sito="http://www.prova.it/francesco/prova.html";
    var sottostringa=sito.split('/')[3];
    ciao

  3. #3
    [edit] come non detto ... ha editato
    Formaldehyde a new Ajax PHP Zero Config Error Debugger

    WebReflection @WebReflection

  4. #4
    Originariamente inviato da andr3a
    [edit] come non detto ... ha editato

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.