Hello,
I am trying to pass a string to a function but the code keeps coming back with an error.
I cant seem to locate what im doing wronge, please help.
Thanks.

here is the code:

Code:
<body>
<script type="text/javascript">

function f(a,b)
{
	document.body.bgColor=' " ' + a + ' " '
	document.getElementById("d").style.color=' " ' + b + ' " '
}

</script>

<button onclick="f('black','white')">
Change the text and bgcolor
</button>

<p id="d">Example</p>

</body>