Vbscript Question?

Results 1 to 2 of 2

Thread: Vbscript Question?

  1. #1
    mintner Guest

    Default Vbscript Question?

    I know this isn&#039t strictly HTML but I am having problems trying to dynamically change the href property on an anchor tag. Has anyone had any luck doing this? I am trying to change something like this<BR>&#060;A id = stuff href="http://somewebsite><BR><BR>&#060;script><BR>frmMyform.stu ff.href = "http://someothersite"<BR>&#060;/script><BR><BR>When I try this I get object isn&#039t supported. HELP!!<BR><BR>Tim

  2. #2
    Join Date
    Dec 1969
    Posts
    168

    Default RE: Vbscript Question?

    &#060;% <BR>Dim id, myurl<BR><BR>if (id="1") then myurl="http://url1.com"<BR>else if (id="2" then myurl="http://url2.com"<BR>end if<BR><BR>&#037;&#062;<BR>Your Id was: &#060;%=id &#037;&#062; &nbsp; and the url is &#060;a href="&#060;%=myurl &#037;&#062;">&#060;%=myurl &#037;&#062;&#060;/a><BR><BR>Hope this helps... Cheers!

Posting Permissions

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