I am a javascript newbie. I am accepting data in a form. I need to display a line in the table asking for the address of the link, but only if one exists. Here is how I am trying to find out if a link exists:
Here is the function:HTML Code:<td>Is the ad linked to a web page? </td> <td>Yes <input name="adlinked" type="radio" value="Yes" onclick= "getlink(adlinked)"> No <input name="adlinked" type="radio" value="No" /></td> </tr>
Nothing happens. Please helpCode:<SCRIPT LANGUAGE="JavaScript1.2"> function getlink(linked) { if (linked == "Yes") document.write ("<tr><td>Address of web page:</td> . <td><input name="thelink" type="text" id="thelink" size="50" /></td></tr>") } </script>



Reply With Quote

Bookmarks