window.tab(1).click = true
This obviously is not correct snytax. Can anyone help me out?
set window.tab(1).onclick = GetRef("myTabOnClickHandlerProcedureName")
which requires VBScript 5.0 or higher on the client...
And you need to connect each instance of "window.tab(n)" to a handler this way.
================
Or in the HTML element that defines whatever "tab" is, you can also give the onclick attribute a
value...
<.... id="tab" onclick="vbscript:myTabOnClickHandlerProcedureName()" ...>
================
Or simply name the procedure
Sub tab_onclick()
...
End Sub
================
Since you obviously have multiple instances of "tab", you'll also need to use
set theTab = window.event.srcElement
inside the handler to get an object reference to which "tab" was clicked...
You can find all of this info by reading the DHTML and VBScript documentation (sometimes between the
lines ;-)...
MSDN Online Web Workshop - DHTML, HTML & CSS Home
http://msdn.microsoft.com/workshop/author/default.asp
VBScript User's Guide
http://msdn.microsoft.com/scripting/vbscript/doc/vbstutor.htm
VBScript Documentation
http://msdn.microsoft.com/scripting/vbscript/techinfo/vbsdocs.htm
http://msdn.microsoft.com/scripting/vbscript/download/vbsdoc.exe
--
Michael Harris
Microsoft.MVP.Scripting
--
"Jim Roehl" <jro...@tir.com> wrote in message news:uRlt6aoRAHA.195@cppssbbsa05...