Your question is not clear and does not corresponds to the issue description.
Create
function deos not require any inputs. It is executed every time on load page.
If you want to pass default text to function, change it to:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Dynamically Create</title>
<script>
function create(partext)
{
var x = document.createElement('p');
var paragraphText = document.createTextNode(partext);
x.appendChild(paragraphText);
stylepara(x);
document.body.appendChild(x);
}
function stylepara(para)
{
para.style.backgroundColor="orange";
para.style.fontFamily="calibri";
para.style.fontSize="32px";
para.style.color="red";
return(true);
}
</script>
</head>
<body onload = "create('A brand new function, WOW!')">
</body>
</html>