What does the following piece of code do?
document.write("<h" & i & ">This is header " & i & "</h" & i & ">")
What does the following piece of code do?
document.write("<h" & i & ">This is header " & i & "</h" & i & ">")
Nothing to do with Visual Basic. That's JavaScript.
Anyway, it writes a HTML header tag. Variable i should be from 1 to 6 and the output would be following HTML snippet if i = 3:
<h3>This is header 3</h3>
Technically, it's VBScript, NOT JavaScript.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.