From: | Neil Bothwick |
Date: | 12 Mar 2001 at 20:11:43 |
Subject: | Re: Javascript Does'nt work on my amiga ??? |
Nick Knight said,
> What I'm actually trying to do is get a message come up in a
> window with the option to click on ' ok 'when I go to
> a web page.
That sounds incredibly annoying, but it you must do it try calling the
alert() from the page's onLoad handler.
The script you posted had more errors than lines. You've defined the
function as a method of the heading tag. How can a piece of text have an
onClick handler? Only links have those. You haven't called the function
anywhere and there are no comments to prevent non-JS browsers displaying
the contents of the script.
I'd suggest thinking through what you want to do more clearly, and then
reading some books or tutorials on JavaScript to determine the best way
to do it.
Neil
------------------------ Yahoo! Groups Sponsor ---------------------~-~>
Make good on the promise you made at graduation to keep
in touch. Classmates.com has over 14 million registered
high school alumni--chances are you'll find your friends!
http://us.click.yahoo.com/l3joGB/DMUCAA/4ihDAA/d8AVlB/TM
---------------------------------------------------------------------_->
Quote carefully and read all ADMIN:README mails
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/