Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

2T16 Poorva RCG Part 3

<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<script>
document.write("===Report Card=== <br>");
document.write("Name: " + "Poorva Maithani<br>");
document.write("Class: " + "2T<br>");
document.write("Index Number:" + "16<br>")

document.write("===Grades===<br>");
document.write("Language Arts: " + "83" + "/100" + " (A) <br>");
document.write("Science:" + "78" + "/100" + " (B) <br>");
document.write("Math:" + "81" + "/100" + " (A) <br>");
document.write("Mother Tongue:" + "74" + "/100" + " (B) <br>");

//part 2 
document.write("===Report Card===<br>");
var yourname = prompt("Enter your name: ");
var yourclass = prompt("Enter your class: ");
var yourindexno = prompt("Enter your index number");
document.write("Name: " + yourname + "<br>");
document.write("Class: " + yourclass + "<br>");
document.write("Index Number: " + yourindexno + "<br>");

document.write("===Grades===<br>");
var yourlangartsmark = prompt("Enter your Lang Arts mark: " + "<br");
var yourscimark = prompt("Enter your Science mark: " + "<br>");
var yourmathmark = prompt("Enter you Math mark: " + "<br>");
var yourMTmark = prompt("Enter your Mother Tonge mark: " + "<br>");
document.write("Langauge Arts: " + yourlangartsmark + "/100" + " (A)<br>");
document.write("Science: " + yourscimark + "/100" + " (B)<br>");
document.write("Math: " + yourmathmark + "/100" + " (A)<br>");
document.write("Mother Tongue: " + yourMTmark + "/100" + " (B)<br>"


var total = Number(yourlangartsmark) + Number(yourscimark) + Number(yourmathmark) + Number(yourMTmark)

document.write("Total Score:" + total + "/400<br>");




</script>
</head>
<body>
</body>
</html>

weather part 2

<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<script>
// task 4a
var weathertoday = prompt("how is the weather today? only type in 'a' for cloudy or 'b' for sunny")
if(weathertoday == "a") {
    document.write("remember to bring an umbrella!")
}
else if(weathertoday == "a") {
    document.write("go out to play!!")
}

else {
    document.write("please only answer with 'a' or 'b' (case sensitive)")
} 

document.write("<br>")

sayHello();
</script>
</head>
<body>
</body>
</html>

Lesson 3 (Task)

<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<script>





</script>
</head>
<body>
</body>
</html>

Nitya 2T Lesson 3B

<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<script>

//task 6
var lightmode = Math.floor((Math.random()*3)+1)

document.write("Light Mode = " + lightmode + "<br>");
if (lightmode == 1){
    document.write("Red man. Do not cross the road.");
}
else if (lightmode == 2){
    document.write("Green man. Cross the road.");
}
else {
    document.write("Orange man. Do not cross the road.");
}

</script>
</head>
<body>
</body>
</html>

2M (27) Samantha Chan RCG Part 2

<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<script>

var urname = prompt ("Enter your name:");
var urclass = prompt ("Enter your class:");
var urindex = prompt ("Enter your index number:");

var yourengmrk = prompt ("Enter your English mark:");
var yourmtmrk = prompt ("Enter your Mother Tongue:");
var yourscimrk = prompt ("Enter your Science mark:");
var yourmathmrk = prompt ("Enter your Math mark:");

document.write("=== Report card === <br>");
document.write("Name: " + urname + "<br>");
document.write("Class: " + urclass + "<br>");
document.write("Index Number: " + "27" + "<br>");
document.write("<br>");
document.write("=== Grades ===" + "<br>");
document.write("English:" + yourengmrk +"/100" + "(A)<br>");
document.write("Math:"+ yourmathmrk + "/100" + "(A)<br>");
document.write("Mother Tongue:" + yourmtmrk + "/100" + "(A)<br>");
document.write("Science:" + yourscimrk + "/100" + "(A)<br>");


sayHello();
</script>
</head>
<body>
</body>
</html>

Online Javascript Editor

<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<script>
//ejemplo 2
var perro = new perro('simba');
function perro(nombre){
    this.nombre = nombre
}
alert(perro.nombre)
</script>
</head>
<body>
</body>
</html>

2M Claire Chng (10) RCG part 2

<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<script>

var urname = prompt("Enter your name:");
var urclass = prompt("Enter your class:");
var urindex = prompt( "Enter your index number:" )

var urengmrk = prompt("Enter your English Marks:")
var urmtmrk = prompt("Enter your Mother Tongue Marks:")
var urscimrk = prompt("Enter your Science Marks:")
var urmathmrk = prompt("Enter your Math Marks:")

document.write("=== Report Card === <br>");
document.write("Name:" + urname +"<br>");
document.write("Class:" + urclass);
document.write("<br>");
document.write("Index Number:" + urindex);
document.write("<br>");

document.write("<br>");
document.write("=== Grades === <br>");
document.write("English:" + urengmrk + "/100" + "(A)");
document.write("<br>");
document.write("Mother Tongue:" + urmtmrk + "/100" + "(A)");
document.write("<br>");
document.write("Science:" + urscimrk + "/100" + "(A)");
document.write("<br>");
document.write("Math:" + urmathmrk + "/100" + "(A)");

sayHello();
</script>
</head>
<body>
</body>
</html>

Online Javascript Editor

<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<script>
//ejemplo 1
var dinero = 'benito';
alert(dinero);
</script>
</head>
<body>
</body>
</html>

links

var links = [
  'https://img5.downloadha.com/hosein/Animation/April%202014/PAW%20Patrol%20S01E01-20%20720p%20WebRip%20%28www.Downloadha.com%29.part1.rar',
  'https://img5.downloadha.com/hosein/Animation/April%202014/PAW%20Patrol%20S01E01-20%20720p%20WebRip%20%28www.Downloadha.com%29.part2.rar',
  'https://img5.downloadha.com/hosein/Animation/April%202014/PAW%20Patrol%20S01E01-20%20720p%20WebRip%20%28www.Downloadha.com%29.part3.rar',
  'https://img5.downloadha.com/hosein/Animation/April%202014/PAW%20Patrol%20S01E01-20%20720p%20WebRip%20%28www.Downloadha.com%29.part4.rar',
  'https://img5.downloadha.com/hosein/Animation/April%202014/PAW%20Patrol%20S01E01-20%20720p%20WebRip%20%28www.Downloadha.com%29.part5.rar'

];

function downloadAll(urls) {
  var link = document.createElement('a');

  link.setAttribute('download', null);
  link.style.display = 'none';

  document.body.appendChild(link);

  for (var i = 0; i < urls.length; i++) {
    link.setAttribute('href', urls[i]);
    link.click();
  }

  document.body.removeChild(link);
}

<button onclick="downloadAll(window.links)">Test me!</button>

Online Javascript Editor

<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<script>
//Uso de valiables numericas!-
<!-
var a = 33;
var b = 10;
var c = "Test";
var linebreak = "<br/>";
    
    document.write("a+b=");
    result = a+b;
    document.write(result);
    document.write(linebreak);

    document.write("a-b=");
    result = a-b;
    document.write(result);
    document.write(linebreak);

    document.write("a/b=");
    result = a/b;
    document.write(result);
    document.write(linebrak);

    document.write("a%b=");
    result = a % b;
    document.write(result);
    document.write(linebreak);
    
    
    --!>

</script>
</head>
<body>
</body>
</html>

Previous 1 ... 5 6 7 8 9 10 11 ... 264 Next
Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.