CSS Chapter 5
CSS Chapter 5
Rollover and
Frames
Unit - V
</html>
Prepared By: Khan Mohammed Zaid, Lecturer, Comp. Engg.,
4
MHSSP
Fra
• <frameset>: me
• <frameset> element holds one or more <frame> elements.
• Each <frame> element can hold a separate document.
• The <frameset > element specifies how many columns or rows there will be in the
frameset, and how much percentage/pixels of space will occupy each of them.
Syntax: win_obj.focus();
Child.html
• It causes the button to react by either replacing the source image at the
button with another image or redirecting it to a different Web page.
• The onmousemove event occurs every time the mouse pointer is moved over
the div element.
• The onmouseenter event only occurs when the mouse pointer enters the div
element.
• The onmouseover event occurs when the mouse pointer enters the div
element, and its child elements.
• [abc] : find any character between the bracket. i.e. between a, b and c.
•.
Expression
: Find any single character, except newline or line
terminator.
• \d : Find a digit.
• match() : The match() method searches a string for a match against a regular
expression, and returns the matches, as an Array object. (text.match(regexp))
<p>Do a global search for an "l", followed by zero or more "o" characters:</p>
<p id="demo"></p>
<script>
let text = "Hellooo World! Hello W3Schools!";
let result = text.match(/lo*/g);
document.getElementById("demo").innerHT
ML = result;
</script>
</body>
</html>
Prepared By: Khan Mohammed Zaid, Lecturer, Comp. Engg.,
24
MHSSP
Regular
<html>
<body> Expression
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
var str = "The rain in SPAIN stays mainly in the plain";
var res = str.match(/ain/gi);
document.getElementById("demo").innerHTML = res;
}
</script>
</body>
</html>