In Firefox, the JavaScript code an interact with the document object to affect HTML structure and CSS style rules as well as define behaviors for given events.

Can the JavaScript code also modify elements of the window object, like menus, not just enable or disable them in a new window? If so, how?

Recommended Answers

All 2 Replies

If you mean the browser window menus, like "File", "Edit", "View" etc. then the answer is no. You cannot modify parts of the browser window from javascript.
You change window size and write to the status bar (both of which is a big 'maybe' in Firefox, since the user can prevent these), but that all as far as I know.

If you mean the browser window menus, like "File", "Edit", "View" etc. then the answer is no. You cannot modify parts of the browser window from javascript.
You change window size and write to the status bar (both of which is a big 'maybe' in Firefox, since the user can prevent these), but that all as far as I know.

Thank you

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.