any ideas about VBScript?

Results 1 to 3 of 3

Thread: any ideas about VBScript?

  1. #1
    Join Date
    Dec 1969

    Default any ideas about VBScript?

    Hi, i know this is not a VBScript Q/A forum, but....<BR>i&#039;ve a function in VBScript that tests a variable, and it works out fine, now i need to do something like:<BR>if teste="a" then<BR>"redirect to a page"<BR>else<BR>"redirect to another page"<BR>end if<BR> any ideas on how to redirect from a function in VBScript? or any site that could help?<BR><BR>best regards, and tkhs in advance..

  2. #2
    Join Date
    Dec 1969

    Default location.href


  3. #3
    Join Date
    Dec 1969

    Default RE: any ideas about VBScript?

    &#060;script language="VBScript"&#062;<BR>if teste = "a" then<BR> document.location.href=&#039;myPage.asp&#039;;<BR> else<BR> document.location.href=&#039;myPage2.asp&#039;;<BR >end if<BR>&#060;/script&#062;<BR><BR>These things are EXACTLY the same as JavaScript. The ONLY difference is the constructs AROUND the commands. You might want to look into learning some JavaScript, because it helps a HUGE amount.<BR><BR>Craig.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts