convert this from javascript to asp

V

Vincent Jones

How can i obtain the same results if I do this in AsP
<select onchange="if (this.selectedIndex > 0) {
if (document.all)
document.all.aP.style.fontFamily = this.value,
document.all.aP.style.fontSize='10mm',
document.all.aP.style.color='red';
else if (document.getElementById)
document.getElementById('aP').style.fontFamily =
this.value;
}"<option>Select a font</option>
<option value="Arial">Arial</option>
<option value="Helvetica">Helvetica</option>
<option value="Verdana">Verdana</option>
</select>
<p id="aP">
Hello world.
</p>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,143
Messages
2,570,822
Members
47,368
Latest member
michaelsmithh

Latest Threads

Top