aparna_881 0 Posted April 11, 2006 Report Share Posted April 11, 2006 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> Quote Link to post Share on other sites
scott100 1 Posted April 11, 2006 Report Share Posted April 11, 2006 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> Quote Link to post Share on other sites
aparna_881 0 Posted April 12, 2006 Author Report Share Posted April 12, 2006 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> <{POST_SNAPBACK}> Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.