On 24 Aug 99 11:11:49 +0100, Andy Thomson wrote:

> I am a NC user so I have only just been able to use V� Pre2. I have
> checked JavaScript is enabled and iBrowse 2.x likes this simple page I
> have written but V� does not. Can someone spot an error or explain why
> this does not work? Here is the local page in question
> 
> -- jsalert.html --
> 
> <HTML>
> <HEAD>
> <TITLE>A Simple Javascript Example</TITLE>
> </HEAD>
> 
> <BODY>
> <H3>Alert example</H3><HR>
> <FORM>
> <INPUT TYPE="Button" NAME="MyButton" VALUE="Click Me" ONCLICK="DoIt()">
> <SCRIPT LANGUAGE="JavaScript">
> <!--

The beginning comment tag is okay.

> function DoIt() {
>   alert('Click Away!');
>   }
> <!-- End-->

Here's the error. You shouldn't have <!--  This opens a new comment
without closing the one above it.  A "loosely" complient browser
would probably ingore this, but Voyager is /very/ strict.  So, it
most likely will go nuts.  And there should be a space after the word
"End" to close the comment. So, the line should read  -- End -->

> </SCRIPT>
> </FORM>
> </BODY>
> </HTML>

Also, the first line (before the opening <HTML> tag) of any HTML code
should specify in proper format the version of HTML you are coding in.
For example,

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

The !DOCTYPE HTML tag specifies that you are using the final version
of 3.2 HTML from the World Wide Web Consortium (W3C).

It's not really necessary in most cases, but is technically /required/
for HTML 3.2 documents; however, most browsers work without it.  Also,
it's nice, if you're trying to figure out why some site won't work on
your browser, to know which version HTML it was coded in.  It also
helps the browser, too; since it "knows" what to look for when
interpreting the page

Happy Coding...
.
--
Patrick Bartek (NoLife Polymath Group)
[EMAIL PROTECTED]
http://www.access1.net/bartek

____________________________________________________________
Voyager Mailing List - Info & Archive: http://www.vapor.com/
For Listserver Help: <[EMAIL PROTECTED]>, "HELP"
To Unsubscribe: <[EMAIL PROTECTED]>, "UNSUBSCRIBE"

Reply via email to