Menu
I have a page that has a link that opens a popup window that displays a list of images. When the user clicks the image they want, it closes the window, and populates a form text field with the url to that image. The script only works in IE, but I’d like to get t working in firefox. Can anyone help?
[code]
<script type=”text/javascript”>
function getLoc(img) {
window.opener.document.<%=form_name%>.product_image.value = document.images(img).src;
window.close();
}
</script>
The link on the popup page calls the getLoc function:
[code]
<a href=”#” onclick=”getLoc(‘<%=img%>’); return false”>image</a>
Thanks