javascript to get value of File in Html with in the Page

Input Type File

<html>
<head>
<title> New Document </title>
<meta name=”Generator” content=”EditPlus”>
<meta name=”Author” content=””>
<meta name=”Keywords” content=””>
<meta name=”Description” content=””>
</head>
<script >
function Check()
{
var name=document.getElementById(‘INPUT’).value;
alert(name);
document.getElementById(‘OUTPUT’).innerHTML=name;
}
</script>
<body>
<input type=”file”  id=’INPUT’  value=””  >
<input type=”button”  value=”Check”  onclick=”Check()” >
<div id=’OUTPUT’></div>
</body>
</html>

This is just to check the value returned from different Browsers ,We call This as Browser Compatibility  issues ………..

With Regards

K.RAJA SEKHAR REDDY

Software Engineer

Advertisements
Image | This entry was posted in JavaScrpit. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s