function InsertHyperlink()
{
var link = prompt("Please Enter A Link Location");
document.getElementsByName("CommentReview").value = link;
}
And it's called within a button click like so
<input type="button" name="Hyperlink" value="Hyperlink" onclick="javascript:InsertHyperlink();" />
The prompt shows but it does absolutely nothing. What could be wrong? It also doesn't work with other text elements in the page either.... Thanks guys

New Topic/Question
Reply


MultiQuote



|