Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    New to the CF scene
    Join Date
    Jun 2004
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Opening a program using javascript?!

    Hi,
    I am a newbie to javascript and i want to do the following thing->
    I want to open a program on the computer using javascript which is embedded in an html page. I have a good knowledge of HTML and i know that this can be done Is there a way? Please help me i am only 14 - lol -
    Also if u can, can u control the program like give a simple text command which in typed in the program and executed, please help, any help will be appreciated. Thank You all for viewing.

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    I do not think there is any way Javascript can be used to access or control programs on a computor.

    If this was possible just think of the mayhem malicious hackers would cause if they got control of the programs on your computor

  • #3
    New Coder
    Join Date
    May 2004
    Location
    Some place called the Earth I think...
    Posts
    99
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hey and welcome, im 13 lol, so im stupid but do you mean sumthing like this:

    Code:
    <input type="file">
    ?
    Dont do drugs, get high on life

    13 years and getting nowhere fast.....


    đ­˘M_M÷˝kŔą

  • #4
    New Coder
    Join Date
    Nov 2003
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Surprise, surprise, im 13 too.

    First off, <input type="file"> does not exist.

    There are ways to open programs via command line, though.
    They have to be on the users computer and and command line features
    set up. EX: <a href="aim:goim?username='d3ment3dparrot'">Click here to IM me</a> will Instant message me using AIM.
    (This can also be used on the Start--Run dialog box in windows.)

    If the file is a video or audio file, you could put:

    <embed src="yourfile.wmv" width="500" height="500" autostart="yes">
    </embed>

    or if its an audio file (ex: background music) you could put

    <embed src="yourfile.mp3" width="0" height="0" autostart="yes" loop="no">
    </embed>

    Or if the file is a text or pdf file, you could use the window.location feature:
    <a href="javascript:window.location='yourfileurl'">View file</a>

    So, as you can see, it really depends on what kind of file you are dealing with.

    Hope I helped
    Flare
    Last edited by flare1028us; 06-05-2004 at 10:25 PM.

  • #5
    New Coder
    Join Date
    May 2004
    Location
    Some place called the Earth I think...
    Posts
    99
    Thanks
    0
    Thanked 0 Times in 0 Posts
    o i didnt really understand what he was talking about, but yeah <input type="file"> works... where are you putting it?┐?
    Dont do drugs, get high on life

    13 years and getting nowhere fast.....


    đ­˘M_M÷˝kŔą

  • #6
    New Coder
    Join Date
    Nov 2003
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <input type="file"> only lets u select a file location.

  • #7
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hope you're not looking to write a virus or trojan, pal? manipulating files on a persons PC without their actual say so is evil.

    hmmm ... your age makes me think you might be a script-kiddie or something LOL

  • #8
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    Age doesn't matter

    It's the intention

  • #9
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Mr J
    It's the intention
    Quote Originally Posted by Mr J
    I do not think there is any way Javascript can be used to access or control programs on a computor.
    that's just it. there is. there's plenty. trust me. cause i know of several seemingly innocuous methods, but which are quite dangerous in the wrong hands.

    now, tho people of all ages hack, his age, the fact that he's got no real experience and the suspicious nature of the question, mark him out as a script-kiddie.

    of course, that's partly prejudice on my part. he may be completely innocent, but it's nonetheless the kind of thing script-kiddie's do.

    *just being cautious*


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •