Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<html>
<head><title>demo</title>
<script language="javascript">
function myDeleteFunction(obj,s) {
alert("you're here-myDeleteFunction");
}
</script>
<script language="vbscript">
Function confirmDelete()
answer = MsgBox("Are you sure you want to delete this one?",4,"Delete")
If answer = 6 Then
'confirmDelete=true
Else
'confirmDelete=false
window.event.returnvalue=false
window.event.cancelbubble=true
End If
End Function
</script>
</head>
<body>
<form name="formName">
<div><h3>[1] testing simple anchor</h3>
<a href="javascript:myDeleteFunction();">adfasdf</a>
</div>
<div><h3>[2] testing only confirmDelete</h3>
<img src="[URL unfurl="true"]http://tek-tips.com/images/partnerbtn120x60.gif"[/URL] onclick="confirmDelete()" />
</div>
<div><h3>[3] testing my proposed solution of nested tag construction</h3>
<a href="javascript:myDeleteFunction(document.formName, 'delete');"><img src="[URL unfurl="true"]http://tek-tips.com/images/partnerbtn120x60.gif"[/URL] onclick="confirmDelete()" /></a>
</div>
<!-- this span is the original poster's construction -->
<div><h3>[4] original tag construction - would fail</h3>
<img href="javascript:myDeleteFunction();" src="[URL unfurl="true"]http://tek-tips.com/images/partnerbtn120x60.gif"[/URL] onclick="confirmDelete()" />
</div>
</form>
</body>
</html>