We use A porgram called Aptana Any ideas please Help 1 Write

We use A porgram called :\"Aptana\"

Any ideas please Help:(

1. Write an HTML file with one button. The value of the button should be your name. Name the file YourFirstName YourLastName.html 5 points. 2. Write a separate JavaScript file called YourFirstName YourLastname.js in the same folder. When the button is clicked, the program should prompt the user for a string, or *** to quit. It should read the string into a variable. 10 points 3. Assume the user enters a lowercase only string. After the user has entered a non-** string, the program should print the number of spaces in the string, and the number of vowels. 10 points Hint: In order to count number of spaces, we can tokenize the string using \" \" as the demarcator. Vowels are : a, \'e, \'i, o, w.

Solution

<html>
<form>
Name:<input type=\"text\" id=\"name\" name=\"name\"/><br/>
<input type=\"button\" value=\"YourFirstNameYourLastName\" onclick=\"Name()\"/>
</form>
</html>

</script>   
<script type=\"text/javascript\">
function Name(){
var name=document.getElementById(\"Name\").value;
alert(\"name entered\");
}
</script>

We use A porgram called :\

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site