TrialUser
asked on
adding a hyperlink or href to a div
I have a div with list of shopping cart items. When users click on "add to cart" button, i would like to add a hyperlink to href to the div.
The div itself shows on mouseover a shopping cart image that I show/hide using javascript.
Now, How can I 1) dynamically add the links to the div.
2) should the links be href or asp:hyperlink.
Please help. any suggetsion would be great. thanks a ton.
The div itself shows on mouseover a shopping cart image that I show/hide using javascript.
Now, How can I 1) dynamically add the links to the div.
2) should the links be href or asp:hyperlink.
Please help. any suggetsion would be great. thanks a ton.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
oh, i got it added a br. thanks a ton for your quick response.
ASKER
function AddLink()
{
var link = document.createElement("a"
link.setAttribute("href","
// to create a label to the link
var lb=document.createTextNode
link.appendChild(lb);
document.getElementById("d
}