Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disabling <A HREF = '' > in VBScript

Status
Not open for further replies.

CherishTheDay

Programmer
Sep 2, 2010
3
US
In JavaScript I can use the return false statement to prevent linking to a null page. How do I do this using VBScript?
Thanks

<TD><FONT size=-2><A HREF='' Language='JavaScript' OnClick='Flip(); return false;' STYLE='text-decoration: none'>Flip</A></TD>
 
I believe...if you make the VBScript a function, then at the end of the function set the function equal to &quot;False&quot;.

Make sense??

<SCRIPT Language=&quot;VBScript>

function Flip()
'Some Code
Flip = False
end function
</SCRIPT>

HTH

Mike
 
Try this ... hope this is wha you are looking for

<SCRIPT Language=&quot;VBScript>

Sub Flip()
'some code
Window.event.returnValue = False
end Sub

</SCRIPT>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top