I would like to display the elements in my array but it is NOT working. Here's my code:
Here's the ouput:
It should display:
Any comments or suggestions are greatly apprecitated.
thanks
Code:
<HTML>
<HEAD>
<TITLE>Test Input</TITLE>
<script type="text/javascript">
function addtext() {
var openURL=new Array("[URL unfurl="true"]http://google.com","http://yahoo.com","http://www.msn.com","http://www.bing.com");[/URL]
document.writeln('<table>');
for (i=0;i<=openURL.length-1;i++){
document.writeln('<tr><td>openURL[i]</td></tr>');
}
document.writeln('</table>');
}
</script>
</HEAD>
<body onload="addtext()">
</BODY>
</HTML>
Code:
openURL[i]
openURL[i]
openURL[i]
openURL[i]
It should display:
Code:
[URL unfurl="true"]http://google.com[/URL]
[URL unfurl="true"]http://yahoo.com[/URL]
[URL unfurl="true"]http://msn.com[/URL]
[URL unfurl="true"]http://bing.com[/URL]
Any comments or suggestions are greatly apprecitated.
thanks