Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to make href = variable
Message
 
 
À
22/09/2003 15:45:32
Information générale
Forum:
Internet
Catégorie:
VBScript
Divers
Thread ID:
00831222
Message ID:
00831291
Vues:
17
There are probably better ways, in general...

but you can certainly do it this way if you want to, try something like this:
  <script language="VBScript" type="text/VBScript">

  sub confirmDelete(toObj)

    Dim intKeyPress
    intKeyPress = msgbox("Are you sure to delete this record?", _
                       vbYesNo+vbQuestion,"Confirm Deletion")
    if intKeyPress = vbNo then

       toObj.href = document.location

    else		

       toObj.href="http://spacefold.com"

    end if

  end sub

</script>

<a href="" onClick="ConfirmDelete(Me)">this is a test</a>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform