florida
12-20-2002, 05:01 PM
Need to put a variable to substitute HTML data. Is it possible??
Here the HTML that I have which is already part of a Javascript:
<script>
//Javascript stuff etc...
<table bgcolor="#00ff00" border=0 cellpadding="0" cellspacing="0" width="100%" height="100%"
align="left"><tr><td><a href="http://mypath/home.html">myurl</a></td></tr></table>;
</script>
How can I do this??
var test = "<table bgcolor="#00ff00" border=0 cellpadding="0" cellspacing="0" width="100%"
height="100%" align="left"><tr><td>"
Here is how I want this variable to work.
test<a href="http://mypath/home.html">myurl</a></td></tr></table>;
Here the HTML that I have which is already part of a Javascript:
<script>
//Javascript stuff etc...
<table bgcolor="#00ff00" border=0 cellpadding="0" cellspacing="0" width="100%" height="100%"
align="left"><tr><td><a href="http://mypath/home.html">myurl</a></td></tr></table>;
</script>
How can I do this??
var test = "<table bgcolor="#00ff00" border=0 cellpadding="0" cellspacing="0" width="100%"
height="100%" align="left"><tr><td>"
Here is how I want this variable to work.
test<a href="http://mypath/home.html">myurl</a></td></tr></table>;