Hi. I have been creating a page that changes certain parts of the page based on user input into forms. An example would be this:
<html>
<head>
<script LANGAUGE="JavaScript">
function getInfo() {
var title=document.info.title.value
newTitle=document.getElementById("head1"
newTitle.firstChild.nodeValue=title
}
</script>
</head>
<body>
<h1 ID="head">This is the old Tite</h1>
<form name="info">
<input type="text" name="title">
<input type="button" onClick="getInfo()">
</form>
</body>
</html>
--------------------
That's one of the parts of that page, I have the same setup for body text, and background colors. The delima I face now is how to change the font color and possibly the font of the text that has been entered. Any help with this will be greatly appreciated! Thanks!
JD
<html>
<head>
<script LANGAUGE="JavaScript">
function getInfo() {
var title=document.info.title.value
newTitle=document.getElementById("head1"
newTitle.firstChild.nodeValue=title
}
</script>
</head>
<body>
<h1 ID="head">This is the old Tite</h1>
<form name="info">
<input type="text" name="title">
<input type="button" onClick="getInfo()">
</form>
</body>
</html>
--------------------
That's one of the parts of that page, I have the same setup for body text, and background colors. The delima I face now is how to change the font color and possibly the font of the text that has been entered. Any help with this will be greatly appreciated! Thanks!
JD