Hello,
I need to dynamically modify a link based on a camera selection change. I am using this to detect the change:
document.getElementById('cam').innerHTML = camnum; //'camnum' ranges from 1 to 15.
I need for the result to append after "cam=" below:
<a href="http://fpc.cam.com/cam.html?rot=90&cam= [...<b id='cam'></b>.....]">click here</a>
Or perhaps:
document.write("<a href=\"http://fpc.cam.com/cam.html?rot=90&cam= [... + <b id='cam'></b> ...]\" ">click here</a>");
I found some other advice on this forum that came close, but it wasn't quite what I needed. Perhaps "document.getElementById" isn't applicable.
Would someone give me a hand here?
Thank you,
Frank
I need to dynamically modify a link based on a camera selection change. I am using this to detect the change:
document.getElementById('cam').innerHTML = camnum; //'camnum' ranges from 1 to 15.
I need for the result to append after "cam=" below:
<a href="http://fpc.cam.com/cam.html?rot=90&cam= [...<b id='cam'></b>.....]">click here</a>
Or perhaps:
document.write("<a href=\"http://fpc.cam.com/cam.html?rot=90&cam= [... + <b id='cam'></b> ...]\" ">click here</a>");
I found some other advice on this forum that came close, but it wasn't quite what I needed. Perhaps "document.getElementById" isn't applicable.
Would someone give me a hand here?
Thank you,
Frank
