|
How do you create a link in javascript??
i'm designing our company's new website. In one cell of a table I've got an image which changes randomly each time the page is loaded. To achieve this I've used javascript (thanks to some help on this forum!). In Dreamweaver I've simply inserted a link to the external javascript file which handles the change of image.
what I need however is for the image that is displayed to also be a link to another page on the site.
is there some way of adding a hyperlink to the cell or to the image? Normally I'd simply click on the image and add a link to it - this is obviously different as the image only appears when you view the page.
thanks in advance
|