Embedding VBScript into HTML Tags

Results 1 to 3 of 3

Thread: Embedding VBScript into HTML Tags

  1. #1
    Join Date
    Dec 1969
    Posts
    89

    Default Embedding VBScript into HTML Tags

    I&#039ve got a pop-up window announcing the grand opening of a site, which should only appear the first time a user accesses the default page. I&#039m using cookies, but the popup uses body onLoad. So my question is, is it possible to put an if statement inside the body tag, so that the onLoad function is only called if the cookie is not found?<BR><BR>Thanks

  2. #2
    Join Date
    Dec 1969
    Posts
    226

    Default RE: Embedding VBScript into HTML Tags

    I might be wrong but...<BR><BR>onload="&#060;%if request.cookies("my_value") &#060;&#062; "" Then%&#062;do something&#060;%else%&#062;or do something else&#060;%end if%&#062;"<BR><BR>HTH

  3. #3
    Join Date
    Dec 1969
    Posts
    89

    Default RE: Embedding VBScript into HTML Tags

    Thanks - I&#039ve actually got it working now :)

Posting Permissions

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