This page tests AWeb's compatibility with JavaScript 1.1 (ECMAScript 1, based on Netscape JavaScript 1.1). Each test includes a description of what it tests, how to run it, what results you should expect, and the interactive test itself.
What it tests: JavaScript variable declaration and basic data types (String, Number, Array).
How to run: The test runs automatically when the page loads. Check the output below.
Expected results: You should see a variable test message, an array test showing numbers 1-5, and a function test showing the result of 5+3=8.
|
Test Output: |
What it tests: The window.alert() method displays a modal alert dialog with a message.
How to run: Click the "Test Alert" button below.
Expected results: A dialog box should appear with the message "This is a JavaScript alert dialog!". Click OK to dismiss it.
|
Test: |
What it tests: The window.confirm() method displays a modal confirmation dialog with OK and Cancel buttons.
How to run: Click the "Test Confirm" button below.
Expected results: A dialog box should appear asking "Do you want to continue?" with OK and Cancel buttons. After clicking either button, check the status bar at the bottom of the browser window - it should show "You clicked OK" or "You clicked Cancel" depending on your choice.
|
Test: |
What it tests: The window.prompt() method displays a modal dialog with a text input field.
How to run: Click the "Test Prompt" button below.
Expected results: A dialog box should appear asking "What is your name?" with a text field pre-filled with "Guest". Enter a name and click OK, or click Cancel. The status bar should show "Hello, [your name]!" if you entered a name, or "No name entered" if you clicked Cancel.
|
Test: |
What it tests: The window.status property controls the status bar text, and window.defaultStatus sets the default status bar text.
How to run: Look at the status bar at the bottom of the browser window. It should show "JavaScript 1.1 Test Page Loaded" when the page loads.
Expected results: The status bar should display the default message. When you hover over links or interact with elements that change the status, the status bar text should update accordingly.
What it tests: The window.setTimeout() method executes a function after a specified delay in milliseconds.
How to run: Click the "Test Timeout" button below.
Expected results: The status bar should immediately show "Status will clear in 3 seconds...". After 3 seconds, the status bar should clear (become empty).
|
Test: |
What it tests: The window.setInterval() method repeatedly executes a function at specified intervals, and window.clearInterval() stops the interval.
How to run: Click the "Test Interval" button below.
Expected results: The status bar should show "Interval count: 1", then "Interval count: 2", and so on, updating every second. After 5 counts, it should show "Interval stopped" and the interval should stop updating.
|
Test: |
What it tests: The window.open() method opens a new browser window.
How to run: Click the "Open New Window" button below.
Expected results: A new window should open (if not blocked by browser settings). The status bar should show "New window opened" if successful, or "Window blocked or failed" if the window could not be opened. Note: AWeb may block popup windows depending on settings.
|
Test: |
What it tests: The window.close() method attempts to close the current window.
How to run: Click the "Close Window" button below.
Expected results: The window may or may not close depending on browser security settings. The status bar should show "Window close attempted" or "Window cannot be closed (may require user interaction)". Note: AWeb typically only allows closing windows that were opened by JavaScript.
|
Test: |
What it tests: The document.write() method writes HTML content to the document.
How to run: Click the "Test document.write()" button below.
Expected results: The current page should be replaced with new content showing "Dynamic Content" as a heading, a paragraph explaining it was written by JavaScript, and the current date and time. This demonstrates that document.write() can dynamically generate HTML content.
|
Test: |
What it tests: The document.title, document.URL, document.lastModified properties, and the document.forms[], document.images[], document.links[] arrays.
How to run: Click the "Show Document Info" button below.
Expected results: An alert dialog should appear showing the document title, URL, last modified date, and counts of forms, images, and links on the page.
|
Test: |
What it tests: The document.forms[], document.images[], and document.links[] arrays that contain references to all forms, images, and links on the page.
How to run: Click the "Count Elements" button below.
Expected results: An alert dialog should appear showing the number of images, forms, and links found on this page. The counts should match the actual elements present.
|
Test: |
What it tests: The document.getElementById() method retrieves an element by its ID attribute.
How to run: Click the "Test getElementById" button below.
Expected results: The status bar should show "Element found (getElementById is supported)" if the method works, or "Element not found (getElementById may not be supported)" if it doesn't. Note: getElementById() may have limited support in AWeb's JavaScript 1.1 implementation.
|
Test:
This is a test div element. Click the button to test getElementById.
|
What it tests: The history.back() method navigates to the previous page in the browser history.
How to run: First navigate to another page, then come back to this page. Then click the "History Back" button below.
Expected results: The browser should navigate to the previous page in the history (if one exists). This is equivalent to clicking the browser's back button.
|
Test: |
What it tests: The history.forward() method navigates to the next page in the browser history.
How to run: After using history.back(), click the "History Forward" button below.
Expected results: The browser should navigate to the next page in the history (if one exists). This is equivalent to clicking the browser's forward button.
|
Test: |
What it tests: The history.go() method navigates to a specific position in the browser history. Positive numbers go forward, negative numbers go back.
How to run: Click either "Go Back 2" or "Go Forward 2" button below.
Expected results: The browser should navigate 2 pages back or forward in the history (if those pages exist).
|
Test: |
What it tests: The history.length property returns the number of entries in the browser history.
How to run: Click the "Show History Info" button below.
Expected results: An alert dialog should appear showing the number of pages in the browser history. The number should be greater than 0.
|
Test: |
What it tests: The navigator object properties that provide information about the browser and platform.
How to run: Click the "Show Navigator Info" button below.
Expected results: An alert dialog should appear showing:
|
Test: |
What it tests: The navigator.userAgent property displayed directly in the page.
How to run: Look at the text below - it displays automatically when the page loads.
Expected results: You should see the user agent string displayed in the test area below.
|
Test Output: User Agent: |
What it tests: The location object properties that provide information about the current page URL.
How to run: Click the "Show Location Info" button below.
Expected results: An alert dialog should appear showing:
|
Test: |
What it tests: The location.href property displayed directly in the page.
How to run: Look at the text below - it displays automatically when the page loads.
Expected results: You should see the current page URL displayed in the test area below.
|
Test Output: Current URL: |
What it tests: The location.reload() method reloads the current page.
How to run: Click the "Reload Page" button below.
Expected results: A confirmation dialog should appear asking "Reload this page?". If you click OK, the page should reload. If you click Cancel, nothing should happen.
|
Test: |
What it tests: String object methods including length, charAt(), indexOf(), lastIndexOf(), substring(), toUpperCase(), and toLowerCase().
How to run: Click the "Test String Methods" button below.
Expected results: An alert dialog should appear showing:
|
Test: |
What it tests: Array object methods including length, join(), reverse(), and sort().
How to run: Click the "Test Array Methods" button below.
Expected results: An alert dialog should appear showing:
|
Test: |
What it tests: Math object constants and methods including PI, E, random(), round(), floor(), ceil(), max(), min(), abs(), and sqrt().
How to run: Click the "Test Math Object" button below.
Expected results: An alert dialog should appear showing:
|
Test: |
What it tests: Date object creation and methods including getTime(), getYear(), getMonth(), getDate(), getDay(), getHours(), and getMinutes().
How to run: Click the "Test Date Object" button below.
Expected results: An alert dialog should appear showing:
|
Test: |
What it tests: Mouse event handlers that trigger when the mouse moves over or away from an element.
How to run: Move your mouse over the link below, then move it away.
Expected results: When you move the mouse over the link, the status bar should show "Mouse is over the link!". When you move the mouse away, the status bar should clear.
|
Test: Hover over this link - watch the status bar! |
What it tests: The ONCLICK event handler that triggers when an element is clicked.
How to run: Click any of the test buttons on this page - they all use ONCLICK handlers.
Expected results: When you click a button, the associated JavaScript function should execute. For example, clicking "Test Alert" should show an alert dialog.
What it tests: Focus event handlers that trigger when a form field gains or loses keyboard focus.
How to run: Click in the text field in Test 5 below, then click outside of it.
Expected results: When you click in the field (giving it focus), the status bar should show "Field focused: name". When you click outside (blur), the status bar should show "Field blurred: name".
What it tests: The ONCHANGE event handler that triggers when a form field value changes.
How to run: Type something in the text field in Test 5 below, then click outside the field or press Tab.
Expected results: After you change the text and move away from the field, the status bar should show "Field changed: [your text]".
What it tests: Form event handlers that trigger when a form is submitted or reset.
How to run: Try submitting the form below (leave the name field empty to test validation), or click the Reset button.
Expected results:
|
Test: |
What it tests: The ONLOAD event handler that triggers when the page finishes loading.
How to run: This test runs automatically when the page loads. Check the status bar.
Expected results: When the page loads, the status bar should show "JavaScript 1.1 Test Page Loaded" (set by the BODY ONLOAD attribute).
AWeb implements JavaScript 1.1, which is based on ECMAScript 1 (1997). This is significantly older than modern JavaScript (ES6+, 2015+). Many features that are standard in modern browsers are not available in AWeb's JavaScript implementation.
Last Updated: 2025 - AWeb 3 JavaScript 1.1 Compatibility Test