GTU WTAD Practical 9 : Write a JavaScript to show a pop up window with a message Hello and background color lime and with solid black border.

GTU WTAD Practical 9 : Write a JavaScript to show a pop up window with a message Hello and background color lime and with solid black border.

GTU WTAD Practical 9This program of JavaScript demonstrate the use of how to display popup window and display message on it. Basically this kind of functionality is used by the most of the website to generate random url and download some file. This functionality is used to hide the actual url of the webpage. This functionality can be used to generate and export report.

GTU WTAD Practical 10

File Name : index.jsp

File Location : Tomcat_Apache\webapps\gtu09\

<html>
<head>
	<title> GTU WTAD Practical 9 : Write a JavaScript to show a pop up window with a message Hello and background color lime and with solid black border.  </title>

	<script language="javascript">
		
		function test()	
		{
			tw=window.open("","TestWindow","Location=1,status=1,scrollbars=1,width=300,height=200,border:2px solid=#ffffff;")
			tw.moveTo(200,200);
			tw.document.write('<h1>Hello</h1>');
			tw.document.bgColor="#FFFF00";
		}


	</script>
</head>
<body>
	<center> <h2> GTU WTAD Practical 9 : Write a JavaScript to show a pop up window with a message Hello and background color 
        lime and with solid black border.   </h2></center>
	
	<body bgcolor="pink" onLoad="test();">
		<h2>New Window in Javascript Example</h2>
	</body>

</body>
</html>

 Output

GTU WTAD Practical 9

 

 

 

 

Leave a Reply