hey,
wondering how to set up a link that when clicked would fire a button as if I actually clicked the button.
fanatsy example:
This doesn't work obviously but is a good example of what I'm trying to do, assuming you understand this is not a functioning script and meant only to serve as an example.
regards
co
wondering how to set up a link that when clicked would fire a button as if I actually clicked the button.
fanatsy example:
Code:
. . .
<script>
function openIt()
{
document.alpha.fileBttn.click; //call to click browse button
}
</script>
</head>
<body>
<form name="alpha">
<a href="#" onclick="openIt()">Open</a> <!--calls openIt()-->
<input type="file" name="fileBttn"> <!--link fires this-->
</form>
. . .
This doesn't work obviously but is a good example of what I'm trying to do, assuming you understand this is not a functioning script and meant only to serve as an example.
regards
co