Jump to content

does anyone knows if i typed this good?


DirkTD

Recommended Posts

i typed a VBScript but i get the message:Types will not match: 'var'or something like that. this is my script:

<script type="text/vbscript">var variabled = "varvarvarvar"document.write (variabled)</script>

this is the full document:

<html><head><title>vbs</title></head><body><script type="text/vbscript">var variabled = "varvarvarvar"document.write (variabled)</script></body></html>

i tried everything but i still get the same message. does anyone sees the problem?PS: i typed this script to try something out(white spaces in vbs)PSS: i may not react so quickly because i REALLY need to do something else than computering(my day: nothing but PC's!)

Link to comment
Share on other sites

  • 2 weeks later...

type="text/vbscript"................^^^^^do you seet the mime-type for the attribute 'type="..."'?it says text/vbscript................^^^^^VBSCRIPTVBs is not JS, you know..

Link to comment
Share on other sites

I see it :). The actual syntax of your code is JavaScript. VBScript does not have the var keyword.

Link to comment
Share on other sites

  • 3 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...