Click to See Complete Forum and Search --> : open new window and run javascript?


zoom
12-10-2003, 04:54 PM
:confused: How can I activate this script and get it to open new window and put results in the new window?

This is a hard drive browser script when you click on button it gives you the drive folder in the same window I would like it to open folder in a new window.


<form action="file:///c|/"><input type="submit" value="c:\ drive"></form>

Thank you for your help

P.S. yes I am a newbie

requestcode
12-10-2003, 06:43 PM
You could use a simple <a href> link and the target property like this:
<a href="file:///c|/" target="_blank">Click Me</a>

Then there is no javascript involved.

zoom
12-10-2003, 09:48 PM
:D works great thank you

This is the code I ended up using.

<form action="file:///c|/" target="_blank"><input type="submit" value="c:\ drive"></form>