Hi (i have searched the forums for an earlier thread on this but no luck)
Im looking for a VERY good book on learning javascript as i just cant seem to get it, ive tried the w3c schools and although its good it only teaches simple stuff (which i can now write) and doesn’t go into variables or functions and other such usefull things.
Im not the brainiest person in the world some things i pick up quickly such as html and css, but j/script im having real trouble with but i really want to learn it as fluently as possible, so if anyone can recommend a really good book that can teach me step by step, i would very much appreciate it.
Thanks alot.
<i>
</i>name="sea.gif"
<i>
</i><img src="asdf.gif" id="foo" />
<i>
</i>document.getElementById("foo").src = "bar.gif";
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="application/javascript;version=1.7">
function disp_prompt() {
var name=prompt("Please enter your name");
if (name!=null && name!="") {
alert("Hello "+ name +" Welcome back to FSC");
}
}
</script>
<style type="text/css">
* {
margin:0;
}
</style>
</head>
<body>
<a href="#" onclick="disp_prompt();">Click</a>
</body>
</html>
works no problem, I changed it alright because you are assigning both prompts to the same variable.0.1.9 — BETA 5.16