Jump to content

Help.. i am a beginner!!


Recommended Posts

Hey there guys... I have been trying to run this code.. and wonder what is wrong with it as it does not run... the click button appears but when clicked says that tere is an error on page.. pl help... Apps<html><head><script type="text/vbscript">sub Age()dim ageage = inputbox("Please type your age")msgbox("Your age is :" age)end sub</script></head><body><form><input type="button" value="Click"onclick="call Age()"></fom></body></html>

Link to post
Share on other sites

You forgot to use an & sign to join the string and dim in the msgbox ie msgbox("Your age is :" & age)works fine now :)

<html><head><script type="text/vbscript">sub Age()dim ageage = inputbox("Please type your age")msgbox("Your age is :"& age)end sub</script></head><body><form><input type="button" value="Click" onclick="call Age()"></fom></body></html>

Link to post
Share on other sites

Hey there... Thanks a ton... :) Apps

You forgot to use an & sign to join the string and dim in the msgbox ie msgbox("Your age is :" & age)works fine now  :)
<html><head><script type="text/vbscript">sub Age()dim ageage = inputbox("Please type your age")msgbox("Your age is :"& age)end sub</script></head><body><form><input type="button" value="Click" onclick="call Age()"></fom></body></html>

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...