Åben fil vha. window. open
HejsaHar denne der ikke virker længere. Kan ikke finde fejlen...
<%
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder(Server.MapPath("\Mappe1\Mappe2"))
%>
<select name="filen" onChange="if (this.selectedIndex > 0){ window.open(this.options[this.selectedIndex].value, '_blank'); this.selectedIndex = 0;}" size="1" cols="40">
<option value="">Hent fil</option>
<% For Each objFile in objFolder.Files %>
<option value="<%=objFolder.Name & "/" & objFile.Name%>"><%=objFile.Name%></option>
<% next %>
</select>
<%
Set objFolder = Nothing
Set objFile = Nothing
Set objFSO = Nothing
%>