|
-
Jun 8th, 2001, 04:02 AM
#1
Thread Starter
Hyperactive Member
Functional Hyperlink
When I click on a Hyperlink how can I get it to run some VB script first?
I know it must have something to do with OnClick, but not sure how to call the function
Thanks in advance for any help provided.
VB 6 Enterprise Edition SP4
ADO, SQL 7/2000, ASP and some JavaScript

>> Life goes on, but for how long? <<
If you can smile when things go wrong, you have someone in mind to blame
-
Jun 8th, 2001, 06:18 AM
#2
Frenzied Member
Is this what you want?
Code:
<html>
<head>
<script language=Javascript>
function x(){
alert("hfgpiusargpufnpg");
}
</script>
</head>
<body>
<A href="page2.html" onClick="x()">page2</a>
</body>
</html>
-
Jun 8th, 2001, 06:25 AM
#3
Thread Starter
Hyperactive Member
Thanks but would it be the same for VBScript?
<html>
<head>
<script language=vbscript>
function x()
'do something
end function
</script>
</head>
<body>
<A href="page2.html" onClick="x()">page2</a>
</body>
</html>
Thanks in advance for any help provided.
VB 6 Enterprise Edition SP4
ADO, SQL 7/2000, ASP and some JavaScript

>> Life goes on, but for how long? <<
If you can smile when things go wrong, you have someone in mind to blame
-
Jun 8th, 2001, 06:27 AM
#4
Frenzied Member
Yep!
... but I prefer to use javascript in the browser rather than vbscript
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|