Is it possible to incorporate variables in a JavaScript function that includes HTML code? Let's consider the following example:
function SetCFonts()
{
var Color = $('#CColor').val();
var Font = $('#CFont').val();
var Size = $('#CSize').val();
var Bold = $('#CBoldOp').val();
var Text = $('#NMsg').val();
var Gen = "<font style=font-weight:+Bold color:+Color font-size:+Size font-family:+Font>Your Text Here</font>";
alert(Gen);
}