C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !






Open File using its Name


Posted Date: 04 Aug 2008    Resource Type: Code Snippets    Category: Javascript

Posted By: Abbas       Member Level: Silver
Rating:     Points: 6



This JavaScript Code sample will open the File whose path is Specified in the TextBox. The function in the below code snipped that does this is - opens()


<html>
<head>
<title>Open any File by typing its Name in TextBox</title>
</head>
<body>
<form name="f1">
<input type="text" name="abbas" value="Enter the Path of the File to Open" size="100"><br>
<input type="button" value="Click the File to Open" onClick="opens()">
</form>
<script language="javascript">
function opens()
{
window.open(f1.abbas.value)
}
</script>
</body>
</script>
</body>
</html>


Attachments

  • Open File using its Name (20038-4221-abbas.html)



  • Responses


    No responses found. Be the first to respond and make money from revenue sharing program.

    Feedbacks      
    Popular Tags   What are tags ?   Search Tags  
    Use javascript to open files from browser  .  Open files using Javascript  .  Open file from browser using Javascript  .  Open file from browser  .  Open File  .  

    Post Feedback


    This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
    You must Sign In to post a response.
    Next Resource: Changing the Image using Timer
    Previous Resource: Java Script Validations
    Return to Discussion Resource Index
    Post New Resource
    Category: Javascript


    Post resources and earn money!
     
    Related Resources



    dotNet Slackers   BizTalk Adaptors    Web Design

    web conferencing

    Contact Us    Privacy Policy    Terms Of Use