About Me (TS Pradeep Kumar)

Working at VIT University and having great interest towards embedded wireless systems and e-learning. This site caters to most of the Indian Engineering/technology students to know about embedded systems, network simulator, e learning tools/techniques, etc. If you are a student or a learner, you can always request a title or post..

Subscribe by Email

Enter your email address:

Delivered by FeedBurner

Simple Examples in Javascript

document.write is a simple function used to display the content to the browser and it also embeds HTML tags inside it and renders as HTML tags.
<html> <script type=text/javascript> document.write("Hello How are you"); document.write("<h1> This is header 1 </h1>"); document.write("<p> This is a new paragraph [...]

Continue reading Simple Examples in Javascript

  • Share/Bookmark

Validating a Textbox

<html> <head> <script type="text/javascript"> document.write("Validating a Text Box<BR>"); function validate_required(field,alerttxt) { with (field)   {   if (value==null || value=="")     {     alert(alerttxt); [...]

Continue reading Validating a Textbox

  • Share/Bookmark

Detect Browser and its Parameters

<html> <body> <script type="text/javascript"> document.write("<p>Browser: "); document.write(navigator.appName + "</p>"); document.write("<p>Browserversion: "); document.write(navigator.appVersion + "</p>"); document.write("<p>Code: "); document.write(navigator.appCodeName + "</p>"); document.write("<p>Platform: "); document.write(navigator.platform + "</p>"); [...]

Continue reading Detect Browser and its Parameters

  • Share/Bookmark

Browser Detect in Java Script

<html> <head> <script type="text/javascript"> function detectBrowser() { var browser=navigator.appName; var b_version=navigator.appVersion; var version=parseFloat(b_version); if ((browser=="Netscape"||browser=="Microsoft Internet Explorer")   && (version>=4))   {   [...]

Continue reading Browser Detect in Java Script

  • Share/Bookmark

Alert, Confirm and Prompt in Javascript

 
<html> <script type=text/javascript> function alertFn() { alert("Welcome to my Website"); } function confirmFn() { confirm("Please Select yes or no"); }
function promptFn() { prompt("Enter [...]

Continue reading Alert, Confirm and Prompt in Javascript

  • Share/Bookmark