I was doing my Quiz for my online school and I think it may have mistakenly counted one of my answers wrong.
Let me know if my answer really IS wrong or not.
Here is the question:
![]()
_____________________________________
Currently enrolled in School for an Associates Degree in Computer Science
From my understanding of Java (Not the best) it appears as though the Test is Correct.
1) You want the Value in Message not "Message" Displayed via the Alert function
alert("Display This Test"); (Displays "Display This Test")
alert(StringData); (Displays the Data in StringData)
The Onclick is used as (Once again If My understanding is correct)
onClick="function('value');"
With the Function you wish in " marks
In the above example the text value is passed to function
if you wish the data in a variable(myvarable) to be passed to function it would be
onClick="function(myvarable);"
oooh I think I get it now.. The "value" in the question tricked me a little bit. I was thinking it was just asking what was the correct way to print the text, guess I should have read the question more thoroughly.. Thanks
![]()
_____________________________________
Currently enrolled in School for an Associates Degree in Computer Science
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks