Using the <a onclick="'>

Hi folks,
   I amusing Dreamweaver 2004 - and although I am use to doing code snippets for javascript in ASP, I am having a horrible time in Dreamweaver. I have the following: <a onClick="javascript:MkMaple();"><u>read more</u></a>
  I just want see if it hits the function but it does not - doesn't like the way it is coded in the <a> tag.
All I want to do is pop-up a window with size parameters, height ect.
The gaol is have wrods that when clicked on, will popup a window for the user...
The code snippet is:
<script type="text/javascript" language="javascript">
Function MkMaple()
{
alert("HELLO");
}
</script>

any help is appericated...
 
bearpawsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

prunckleCommented:
bearpaws,

If you're just looking to launch a pop-up, you can try:
<A HREF="#" onClick="alert('Hello')";><u>read more</u></A>

Open in new window

0
prunckleCommented:
However, if you're interested in the external javascript, try making the word "function" all lower case in your Javascript....like:
<script type="text/javascript" language="javascript">
function MkMaple()
{
alert("HELLO");
}
</script>
 
with the following in the body:
<a onClick="javascript:MkMaple();")><u>read more</u></a>
 
or
 
<a href="#" onClick="javascript:MkMaple();")><u>read more</u></a>

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bearpawsAuthor Commented:
That worked! Jeepers! Thank you so much! I am on site here and I need to find the parameters for opening an window with window.open etc...sigh
0
bearpawsAuthor Commented:
Excellent!
0
prunckleCommented:
Bear...

If you post a new question in this forum on the window.open problem you are having, I might be able to answer it for you!

Scot
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Dreamweaver

From novice to tech pro — start learning today.