Hi,
My problem is on the page loads i want to assign the url in the anchor tag like below. But it not working at all. I tried in both a way with and without runat server.
window.onload = function () {
document.getElementById('placeholder').href = 'drawPicture.aspx?code=MIL-2653-22CT&width = 550';
}
<a id="placeholder" rel="zoom-width:600px; zoom-height:600px" class="MagicZoom">
But it work's fine when i put the aboove URL directly like below
<a id="placeholder" rel="zoom-width:600px; zoom-height:600px" href="drawPicture.aspx?code=MIL-2653-22CT&width = 550" runat="server" class="MagicZoom">
But i want to be done by like " document.getElementById('placeholder').href = 'drawPicture.aspx?code=MIL-2653-22CT&width = 550';"
Please help !!