CSS Chapter 5 (1)
CSS Chapter 5 (1)
and Frames
Unit - V
<frameset cols="25%,25%,50%"
rows=“50%,50%">
<frame src="coffee.html">
<frame src="computer.html">
<frame src="phone.html">
<frame src="Bookmark.html">
<frame src="anchor.html">
<frame src="list.html">
</frameset>
</html>
Prepared By: Khan Mohammed Zaid, Lecturer, Comp. Engg.,
4
MHSSP
Frame
• <frameset>:
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.
• \d : Find a digit.
• exec() : Tests for a match in a string. Returns the first match. (pattern.exec())
• 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").innerHTML = result;
</script>
</body>
</html>
Prepared By: Khan Mohammed Zaid, Lecturer, Comp. Engg.,
24
MHSSP
Regular Expression
<html>
<body>
<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>