Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make href = variable
Message
 
 
To
22/09/2003 15:45:32
General information
Forum:
Internet
Category:
VBScript
Miscellaneous
Thread ID:
00831222
Message ID:
00831291
Views:
18
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>
Previous
Reply
Map
View

Click here to load this message in the networking platform