Hello fellow coders
I have a fundamental problem with my code and i don't know what the problem is.
I've only just started doing java script 1 hour ago
Here's the problem
This is in the head
alert(" - Java is an OOP programming language" + '\n' +
" - Java creates applications that run in a virtual machine.") ;
alert(" - Java Script is an OOP scripting language" + '\n' +
if (Variable == "Java Information")
This is in the body
<input type="button" onclick="displayJavaMsg()" value="Java"/>
<h1>Using a Generic Function</h1>
<input type="button" onclick="Message()" value="Java Information"/>
The first part which displays the msgs works fine.
The 2nd part ( Using Generic Function ) doesn't work
A little help? Thanks in advanced