RSS

Monthly Archives: January 2015

Anchor tag syntax for send email (mailto) with autopopulated CC, subject and body

On click of the hyperlink an email is composed with the prepopulated values:
To: mca@hotmail.com
CC: mca4@hotmail.com
Subject: Sending Test Email
Message: Test Message

The code for this is as follows:

<html>
<body>
<a href='mailto:mca@hotmail.com.com?CC=mca4@hotmail.com&Subject=Sending Test Email&Body=Test Message'>
Mail MCA
</a> 
</body>
</html>
 
Leave a comment

Posted by on January 31, 2015 in HTML

 

difference between == and === in JavaScript

<html>
<head>
<script>
	
	if ("5"==5)
		document.write("Both are equal");
	else
		document.write("Both are not equal");
	document.write("<br>");
	
	//Example of Strictly type conversion 
	if ("5"===5)
		document.write("Both are equal");
	else
		document.write("Both are not equal");
	
</script>
</head>
</html>
 
Leave a comment

Posted by on January 31, 2015 in Java Script

 

Arithmetic Operator in JavaScript

<html>
<head>
	<script>
		var no1=10;
		var no2=20;
		
		var a=no1+no2;
		var s=no2-no1;
		var m=no1*no2;
		var d=no2/no1;
		var mo=no2%no1;
		
		document.write("Addtion : " + a +"<br>");
		document.write("Subtraction : " + s +"<br>");
		document.write("Multiplication : " + m +"<br>");
		document.write("division : " + d +"<br>");
		document.write("Modulus : " + mo +"<br>");
		<!-- Increment and Decrement Operator -->
		document.write("Increment of a  : " + (++a)	+"<br>");
		document.write("Decrement of a  : " + (a--) +"<br>");
		document.write("Decrement of a  : " + a +"<br>");
		
		
		
	</script>
</head>
<body>
</body>
</html>

 
Leave a comment

Posted by on January 31, 2015 in Java Script

 

Array with different values in Java Script

<script>
	
  
  // Array with different values 
  var a=new Array();
  a[0]=true;
  a[1]="welcome";
  a[2]=2338284;
  a[3]=new Array(10,20);
  document.write("<br> Result of join  : " + a.join()+ "<br>");
  document.write(a[3][0] + "<br>");
  document.write(a[3][1] + "<br>");
  document.write("length : " + a.length);
</script>
 
Leave a comment

Posted by on January 31, 2015 in Java Script

 

Array in Java Script

<script>
	//Array with same value
  var fruits = ["Banana", "Orange", "Apple", "Mango"];
  document.write(" Result of join  : " + fruits.join()+ "<br>");
  document.write("Result of reverse : " + fruits.reverse());
  
  
</script>
 
Leave a comment

Posted by on January 31, 2015 in Java Script

 

Use of Prompt in Java Script

<html>
<head>
	<script>
	var name=prompt("enter your name","mca");
	document.write("Welcome "+name + " to java script"); 
	</script>
</head>
<body>
</body>
</html>
 
Leave a comment

Posted by on January 31, 2015 in Java Script

 

Unit 1 : HTML

Unit 1 : HTML

Download OR Downlaod

 
Leave a comment

Posted by on January 21, 2015 in Material

 

Image Map Example


<html>
<body>
<MAP NAME="map1">
<AREA
HREF="contacts.html" ALT="Contacts" TITLE="Contacts" SHAPE="RECT" COORDS="6,116,97,184">
<AREA
HREF="products.html" ALT="Products" TITLE="Products" SHAPE="CIRCLE" COORDS="251,143,47">
<AREA
HREF="new.html" ALT="New!" TITLE="New!" SHAPE="POLY" COORDS="150,217, 190,257, 150,297,110,257">
</MAP>

<IMG SRC="testmap.gif"  ALT="image not available" BORDER="0" WIDTH="300" HEIGHT="300" USEMAP="#map1"><BR>

</body>
</html>

Image :

testmap

 
Leave a comment

Posted by on January 19, 2015 in Example, HTML

 

Exercise for Table tag

tabletag2 tabletag3 tabletag1

 
Leave a comment

Posted by on January 16, 2015 in Example, HTML

 

Table tag Example

 

<table border="1" width="500">
    <caption style="caption-side:top"><u>Table rowspan and colspan attribute Demo</u><br><br></caption>
    <tr>
        <td colspan="3" align="center">Top</td>
    </tr>
    <tr>
        <td rowspan="2">Left</td>
        <td align="middle">Middle Up</td>
        <td rowspan="2" align="right" valign="middle">Right</td>
    </tr>
    <tr>
        <td align="middle">Middle Down</td>
    </tr>
    <tr>
        <td colspan="3" align="center">Bottom</td>
    </tr>
</table>
    

output :
tabledemo2
 

 
Leave a comment

Posted by on January 16, 2015 in Example, HTML