Thanks :) I guess i more use to VB instead of JAVA.
>From: Hans Jörg Friedrich <hans.friedrich@b...>
>Reply-To: "javascript" <javascript@p...>
>To: "javascript" <javascript@p...>
>Subject: [javascript] AW: Simple script not working
>Date: Tue, 29 May 2001 11:00:27 +0200
>
>Hello Shumaila,
>
>There are a couple of mistakes in your code. At the first the reason for
>the error messages you described:
>
>- JScript doesn't have a keyword like "call" to execute a
>function. Just write »abc()« not »call ABC()«
>- The "<title>" tag should be part of the <head>
>- You don't have a "<body>"-Tag in your document
>- There shouldn't be anything between </head> and <body>
>- You should always specify the language in your <script>-tags
>- The JScript-Code has to be masked by using HTML and JScript
>comments (at least in the body)
>- JScript is case sensitive. abc() is not the same as ABC()
>So the following example should work
>
><HTML>
><HEAD>
><SCRIPT LANGUAGE ="JAVASCRIPT" type="text/javascript">
><!--
>function abc()
>{
> document.write("sdfsd");
>}
>// -->
></SCRIPT>
><TITLE>
>Search Results
></TITLE>
></HEAD>
><body>
><script type="text/javascript" LANGUAGE ="JAVASCRIPT">
><!--
> document.write ("ghdfhfghgfh");
> abc();
>// -->
></SCRIPT>
></BODY>
></HTML>
>
>Hope this helps
>
>Hans
>
>-----Ursprüngliche Nachricht-----
>Von: Shumaila [mailto:sh_naeem@h...]
>Gesendet: Montag, 28. Mai 2001 20:51
>An: javascript
>Betreff: [javascript] Simple script not working
>
>
>I am using following code on my page it give an error on line (A)
>saying ";" expected. If i remove that line from the code. The page does
>not shows any error. I don' know what is wrong.
>
><HTML>
>
><HEAD>
><SCRIPT LANGUAGE ="JSCRIPT">
> function abc()
> {
> document.write("sdfsd");
> }
></SCRIPT>
></HEAD>
>
><TITLE>
>Search Results
></TITLE>
>
><script type="text/javascript">
> document.write ("ghdfhfghgfh");
> call ABC();
></SCRIPT>
></BODY>
></HTML>
>
>