Jump to content

File Browse


jmc92

Recommended Posts

Ok I have this code

<input type="file" name="q2" style="width:200" value="" />      <input type="submit" name="Submit" value="Run" onclick="location.href=q2.value" />

how do I add a second button that will open the file in a new window?Thanks in advance

Link to comment
Share on other sites

Link to comment
Share on other sites

<input type="file" id="q2" style="width:200px" value="" /><button type="button" onclick="window.open(document.getElementById('q2').value)">Run</button>

Link to comment
Share on other sites

Well it works for the device im coding forI just need the buttonbut I still havnt figured it out
<input type="file" id="q2" style="width:200px" value="" /><button type="button" onclick="window.open(document.getElementById('q2').value)">Run</button>

Thank you! :)
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...