0% found this document useful (0 votes)
7 views

CSS ORAL 2

The document provides an overview of various JavaScript methods and concepts, including how to open a new browser window and the use of regular expressions. It also explains the definition and functionality of menus, status bars, and banner ads in web development. Additionally, it outlines security measures for protecting webpages and describes the use of frames and the <frameset> tag in HTML.

Uploaded by

dagadeparamdeep
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

CSS ORAL 2

The document provides an overview of various JavaScript methods and concepts, including how to open a new browser window and the use of regular expressions. It also explains the definition and functionality of menus, status bars, and banner ads in web development. Additionally, it outlines security measures for protecting webpages and describes the use of frames and the <frameset> tag in HTML.

Uploaded by

dagadeparamdeep
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

*01.

Syntax for opening a window:*


To open a new browser window in JavaScript, you can use the window.open() method. Here's the
basic syntax:
javascript
window.open(url, windowName, windowFeatures);

*02. Methods of the window object:*


Some common methods of the window object in JavaScript include open(), close(), alert(), confirm(),
prompt(), and setTimeout().

*03. JavaScript to open a new window:*


javascript
function openNewWindow() {
window.open('https://www.example.com', 'NewWindow', 'width=400,height=400');
}

*04. Definition of regular expressions (RegEx):*


Regular expressions are patterns used to match character combinations in strings. Commonly used
RegEx methods include test(), exec(), match(), search(), replace(), and split().

*10. Definition of a Menu:*


A menu is a list of options or commands that allow users to perform actions or navigate through a
website. You can create a simple pulldown menu using HTML and CSS.

*11. Dynamic Menu:*


A dynamic menu is a menu that can change its options or structure based on user interactions or
data.

:
*13. Use of Status Bar:*
The status bar in a browser is used to display messages or information to the user, such as loading
progress or link URLs.

*14. Method to Put Message in Status Bar:*


To change the message in the browser's status bar, you can use window.status in JavaScript.

*15. Ways to Protect Your Webpage:*


- Use HTTPS for secure data transmission.
- Implement input validation to prevent SQL injection and XSS attacks.
- Limit directory access and use permissions.
- Regularly update and patch software to address security vulnerabilities.
- Use strong and unique passwords.

*15.What is a Banner Ad:*


A banner ad is a graphical advertisement typically displayed on a webpage. It's designed to promote
products, services, or content and often includes images, text, and links.

*17 Frame:*
In web development, a frame refers to an HTML structure that divides a webpage into separate
sections, each capable of displaying its own content. Frames are less commonly used today, and
alternatives like iframes are preferred.
*18. Frameset Tag:*
The <frameset> tag in HTML is used to define a set of frames within a frameset. Its attributes include
rows, cols, border, frameborder, and others to control the layout and appearance of frames.

You might also like