Is my calling of javascript is correct?
Posted: Fri Feb 09, 2007 5:24 am
Code: Select all
<title>Remote script access Test</title>
<script language="javascript" type="text/javascript" src="http://remoteserver/myapp/name.js"></script>
<script language="javascript" type="text/javascript">
function test(name)
{
alert("Hi");
var name = new Name();
alert("Class Works");
}
</script>
</head>
<body>
<form>
<input type="text" name="text_val" value="">
<input type="button" value="" onClick="test(text_val.value)">
</form>
</body>
</html>