S
soni2926
hi,
i'm trying to build a link on the fly and add it to the innerHTML
property of a div like so:
var linkstr = '<a onclick=window.location="../mysite.php?id=" +
result.GID + ";">Click Here</a>';
linkToSet.innerHTML = linkstr;
problem is i can get the linkstr to build properly as a link with a
parameter being passed in, the result.GID is a local javascript
variable and has a value. can somsone help and show me how to get
this to build properly?
thank you!
i'm trying to build a link on the fly and add it to the innerHTML
property of a div like so:
var linkstr = '<a onclick=window.location="../mysite.php?id=" +
result.GID + ";">Click Here</a>';
linkToSet.innerHTML = linkstr;
problem is i can get the linkstr to build properly as a link with a
parameter being passed in, the result.GID is a local javascript
variable and has a value. can somsone help and show me how to get
this to build properly?
thank you!