Correct Answer: The windowhistory object can be written without the window prefix To protect the privacy of the users, there are limitations to how JavaScript can access this object Some methods: historyback() - same as clicking back in the browser historyforward() - same as clicking forward in the browser
5. What are the different objects used in JavaScripts?
Correct Answer: JavaScripts uses a hierarchical structure that applies to the objects in a document There are some objects that show the relationship of one object to another using the language Window object: This is the topmost object in the hierarchy It represent the content area of browser window that consists of HTML documents Each frame is also a window that has some actions inside it Document object: This object gets loaded in a window and consists of objects of different kind in the model It consists of the content that will be written in the script Form object: Form objects are used for more interaction with the users It represents the form elements inside tag
Correct Answer: Some of the new features provided in HTML5 are: - It provides support for local storage - New form controls, like calendar, date, time, email, url, search -
Correct Answer: Some important differences between Canvas and SVG: - Canvas is resolution dependent while SVG is not - Canvas does not provide any support for event handlers while SVG does - Canvas is suitable for graphic-intensive games while SVG is not suitable for gaming - Canvas is suitable for small rendering areas while SVG is suitable for large rendering areas like Google maps
Correct Answer: - SVG is the abbreviation for Scalable Vector Graphics and is recommended by W3C - It is used to define vector-based graphics for the Web - The graphics are defined in XML format -An important quality of SVG graphics is that their quality is maintained even when they are zoomed or resized - All the element and attributes of SVG files can be animated