[JavaScript]document.writeln with variable and html tags

hi guys,

i’m experimenting with some javascript and i’ve got some problem with the document.writeln when using variable and html along with it.

here’s a sample of the script where strEmail and strName is the variable and i’m trying to align the variable output to the middle with an align html tag.

document.writeln(’<p align=“center”> strEmail+strName <p>’);

but when i save the page it just won’t display anything. it works fine when i don’t include the HTML tag into it. is there any problem with the code? thanks in advance :slight_smile: