VBSCRIPT, A HREF, and JavaScript

madmatt

Awesome is as awesome does.
Political Access
Joined
5 Apr 2002
Messages
13,314
Okay, here's the deal.

I wrote a VBSCRIPT to save the contents of an TEXTAREA box to a file on my HDD. I call this script using the onClick="setFile('location')" function inside an A HREF statement. The VBSCRIPT works perfectly and saves the input to a file stored on my HDD.

The problem I am having is that I am trying to prevent MSIE from launching. I tried using href="javascript:void(0)", but the browser still opens with a "the page cannot be displayed" error.

Here's the A HREF:

<a onClick="setFile('c:\\windows\\quicknotes.txt')" href="javascript:void(0)">save</a>

(there are no spaces between JAVA and SCRIPT, the bold print just makes it appear so).

Any help would be appreciated, thank you in advance.
 
There IS a space (check the HTML code...), I hope you don't have that in your code.
 
Originally posted by Zedric
There IS a space (check the HTML code...), I hope you don't have that in your code.

I said, there is not a space. Believe me, there is NOT a space in the actual code. Displaying the code using the forum's BOLD code makes it appear so. Once again, there is NOT a space between JAVA and SCRIPT. Thanks for trying though. =)
 

Members online

No members online now.

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,621
Latest member
naeemsafi
Back