Many of these items are possible in Netscape Communicator 4.0, which
features the enhanced
(and proprietary) version 1.2 of JavaScript. Moreover, those items
perceived to be security risks
(e.g., access browser settings) require "signed JavaScript."
MSIE JScript v2 (more below) can read/write local files via ActiveX
- a source of that
architecture's widely publicized security pitfalls.
if (form.text2.value == "" || form.text2.value.indexOf('@', 0) == -1) alert("No valid e-mail address!"); else alert("OK!"); ... <input type="button" name="button2" value="Test Input" onClick="test2(this.form)"> |
<a href="#"
onMouseOver="document.myImage2.src='img2.gif'" onMouseOut="document.myImage2.src='img1.gif'"> <img src="img1.gif" name="myImage2"> |
<html>
<body> <br> This is a normal HTML document. <br> <script language="JavaScript"> document.write("This is JavaScript!") </script> <br> Back in HTML again. </body> </html> |