I am trying to create a combo box, with pull-down items, whereby each entry is a hyperlink to a specified file. Can this be done using only html and does anyone know how to do it? If not, should I be tackling this in a different way?
<script type="text/javascript">
function go()
{
window.location=document.getElementById("menu").value
}
</script>
----------------
and in html body
<select id="menu" onchange="go()">
<option>Select Year</option>
<option value="display/und_const.html">2007</option>
<option value="display/und_const.html">2006</option>
--------------------
But the problem is that it is not having the link colour as normal hyperlink.So it is not being possible to identify whether a link is visited or not.
Oh no, that's not the way it works out I think. They (The elements) can trigger a link via the script but aren't exactly hyper-linked in itself. That doesn't seem possible with just basic JS/HTML. There might be ways with x/D/w/eHTML but I don't know of them.
Hi Guest we just wanted to alert you to a major change in the forum. We will no longer be allowing the posting of outgoing links. Please use the attachment feature to attach media to your posts.