Does anyone know how I can get JS to fire off the "Browse" button for an
input type="file" form element in Netscape 4+?

I've got it working fine in IE (see code below), but it doesn't do anything
in NS.

<script language="JavaScript">
<!--
function RunThis() {
        document.myform.test2.click();
        }
        //-->
</script>
</head>

<body onload="RunThis()">
<form action="test" enctype="multipart/form-data" name="myform">
<<input type="file" name="test2" size="27">
</form>


Thanks,

Chris
------------------------------------------------------------------
Chris Lomvardias
[EMAIL PROTECTED]
Syscom, Inc.
400 E. Pratt Street, Suite 300
Baltimore, MD 21202
(410)539-3737 x1722 voice
(410)539-7302 fax
[EMAIL PROTECTED] (pager via email)
http://www.syscom.com/
------------------------------------------------------------------
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to