HW 13        IFSC 3300        Due W 11/20/2024

Please email your answers to: IFSC3300HW@gmail.com. Do not submit code as a shared document, because too often we run into permission problems and format conversion problems. Instead, put it in the body of the email or, if you feel strongly about it, as an attachment.

ℕOTE: Qs 1-6 are fairly quick. Q7 is longer, so budget your time accordingly.

 

1. 𝔻oes window.document.getElementById() do the same thing as document.getElementById()? Why or why not? You can try this out in a sandbox without buttons, or you could make two buttons, one for running each of the two code snippets. If you do it with buttons, feel free to add them to a collection of buttons from previous assignments.

2. 𝔻oes window.innerHeight have the same value as screen.height? Why or why not? You can try this in a sandbox without buttons, or use buttons.

3. 𝔻oes screen.height have the same value as screen.availHeight? Why or why not? You can try this in a sandbox without buttons, or use buttons.

4. 𝔾et the window.location.href property. Does the result make sense? You can try this in a sandbox without buttons, or use buttons.

5. 𝔻oes your browser have cookies enabled? (Try navigator.cookieEnabled). We will discuss cookies more next time. You can try this in a sandbox without a button, or use buttons.

6. 𝔻oes window.alert(“Hi!”); do the same thing as alert(“Hi!”); ? Why or why not? You can try this in a sandbox without buttons, or use buttons.

7. ecall the DOM navigator demo discussed in class (link). It demonstrates key functionality, but is an initial test version & just a starting point. Improve it significantly. Explain what you did.