HTML commands

This is a discussion on HTML commands within the Windows Programming forums, part of the Platform Specific Boards category; Can anybody tell me how can you run windows files from an html file. I might add i dont know ...

  1. #1
    I'm Back
    Join Date
    Dec 2001
    Posts
    556

    HTML commands

    Can anybody tell me how can you run windows files from an html file. I might add i dont know how to do html so an eg might help me.

    Another ques.
    i was seeing a source of a webpage and it there were these commands.

    window.close();
    parent.close();
    window.parent.close();

    can you tell me the difference between the three as they all try to close the webpage??

    any help would be appreciated..

  2. #2
    Registered User (TNT)'s Avatar
    Join Date
    Aug 2001
    Location
    UK
    Posts
    339
    Hey,

    If i understand you correctly you are talking about HTML not c++?

    If you were then i dont think you can run them automatically from a html page for security reasons. Though i think you can make an ancoured link to open a file located on the clients machine.

    Somthing like this:

    PHP Code:
    <!-- Opens Drive C: --!>
    <
    a href="file://c:\">Open Your C: Drive!!!</a>

    <!-- Opens File On C: Not tested this but the above works --!>
    <a href="
    file://c:\simplest_lang_ever.exe">Opens .exe file</a> 
    Oops just rembered for complete security stuff the above wont work, say if you sent someone a trojan then made a page to open it and get it running, m$ just cant do that lol.

    So you cant run files but you can open folders for listings.


    PART 2:

    window.close();
    parent.close();
    window.parent.close();

    Hmmm that to me looks largly like javascript, infact yes it is!!!! lol.

    They all do the same thing i think, been a long time since i last looked over my java books though ,

    Parent.close will simply close the main parent window, say you run that from a child window, if that makes sense with html, it will close its parent.

    window.close will close the current window.

    window.parent.close() i aint to sure to be honest but i dont think you would need to use it....



    Hope That Helps a bit...

    TNT
    TNT
    You Can Stop Me, But You Cant Stop Us All

  3. #3
    I'm Back
    Join Date
    Dec 2001
    Posts
    556
    thanks TNT

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Please Help - C code creates dynamic HTML
    By Christie2008 in forum C Programming
    Replies: 19
    Last Post: 04-02-2008, 08:36 PM
  2. Writing an HTML Preprocessor
    By thetinman in forum C++ Programming
    Replies: 1
    Last Post: 09-17-2007, 09:01 AM
  3. Replies: 2
    Last Post: 07-27-2007, 01:48 PM
  4. Design + HTML
    By orbitz in forum C Programming
    Replies: 8
    Last Post: 11-21-2002, 06:32 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21