Css Practical 10 & 11
Css Practical 10 & 11
PRACTICAL NO.: 10
CODE:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Experiment 10_1</title>
<script>
function WriteCookie(){
now.setMonth(now.getMonth() +1);
cookievalue = document.cookie;
</script>
</head>
<body>
</form>
</body>
</html>
OUTPUT :
21482 ASHISH KHOBRAGADE
CODE:
<html>
<head>
<title>Experiment No.10</title>
<script>
function WriteCookie() {
let b=a.toUpperCase();
document.write(b);
document.write("<hr>");
val = allcook.split(";");
txt = val[i];
document.write( txt );
</script>
</head>
<body>
<form name="Form">
<center>ENTER DETAILS</center>
<div>
<hr>
</div>
</form>
</body>
</html>
OUTPUT:
21482 ASHISH KHOBRAGADE
21482 ASHISH KHOBRAGADE
PRACTICAL NO.: 11
CODE:
<!DOCTYPE html>
<html>
<head>
<title>
</title>
</head>
<body>
<script>
function child(){
newWindow.focus()
</script>
</body>
</html>
OUTPUT :
21482 ASHISH KHOBRAGADE
CODE:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<script>
var popchild;
function OpenElement(){
popchild= window.open("child.html","_blank")
function SendElement(){
var p = popchild.document.getElementById("p1");
p.innerHTML=document.getElementById("txt1").value;
popchild.focus()
else{
</script>
</body>
</html>
OUTPUT :
21482 ASHISH KHOBRAGADE
CODE:
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
</body>
<script>
function getLocation() {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPosition);
else {
function showPosition(position) {
</script>
</html>
OUTPUT:
21482 ASHISH KHOBRAGADE
CODE:
<!DOCTYPE html>
<html>
<head>
<style>
body {
width: 5000px;
height: 7500px;
</style>
</head>
<body>
<script>
var newwin1;
function WinOpen() {
newwin1.focus();
function SizeAtfunction() {
newwin1.resizeTo(200, 50);
newwin1.focus();
function SizeByfunction() {
newwin1.resizeBy(200, 50);
newwin1.focus();
function Closefunction() {
newwin1.close();
function MoveAtfunction() {
newwin1.moveTo(200, 50);
newwin1.focus();
function MoveByfunction() {
newwin1.moveBy(300, 500);
newwin1.focus();
function scrollWin() {
newwin1.scrollTo(300, 300);
newwin1.focus();
function scrollWin1() {
newwin1.scrollBy(0, -50);
newwin1.focus();
</script>
</body>
</html>
OUTPUT:
21482 ASHISH KHOBRAGADE
CODE:
<!DOCTYPE html>
<html>
<head>
<title>Document</title>
<script>
var x = history.length;
function goBack() {
window.history.forward();
function goForward() {
window.history.forward();
function goBack() {
window.history.go(-2);
</script>
</head>
<body><br><br>
<a href="https://www.youtube.com/">
</a>
</form>
</body>
</html>
OUTPUT: