javascript - two commands are not running on browser please find the problem? -


two commands below not running on browser.......anybody please findout problem........

<script language="javascript">  var myvariable="my name sonia";  document.writeln(myvariable.big()); document.writeln(myvariable.blink()); document.writeln(myvariable.bold()); document.writeln(myvariable.fixed());  <!-- following 2 lines have problems --> document.writeln(myvariable.fontcolor(“red”)); document.writeln(myvariable.fontsize(“18pt”));  document.writeln(myvariable.italics() ); document.writeln(myvariable.small()); document.writeln(myvariable.strike()); document.writeln(myvariable.sub()); document.writeln(myvariable.sup()); document.writeln(myvariable.tolowercase()); document.writeln(myvariable.touppercase()); var finalstring = myvariable.bold().tolowercase().fontcolor("red"); document.writeln(finalstring); var newvar=myvariable.split(''); document.write(newvar);   </script> 

it looks me used wrong double quotes in there. such code works need

document.writeln(myvariable.fontcolor("red"));  document.writeln(myvariable.fontsize("18pt")); 

Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -