ASP/VBScript GetRef() Returns a reference to a procedure that can be bound to an event.
ShotDev Focus:
- Using Asp and GetRef() function.
Example
asp_getref.asp
<% Option Explicit %>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<script language="VBScript">
Function fncAlert()
Dim strText
strText = "Welcome to ShotDev.Com"
MsgBox strText
End Function
Set Window.Onload=GetRef("fncAlert")
</script>
</body>
</html>
Create a asp file and save to path root-path/myasp/
Run
http://localhost/myasp/asp_getref.asp
Screenshot


