Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old July 20th, 2005, 08:53 AM
Registered User
Points: 1,897, Level: 17
Points: 1,897, Level: 17 Points: 1,897, Level: 17 Points: 1,897, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Apr 2005
Location: Mumbai, Maharastra, India.
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default Inline Javascript.

I want to know how to call user define function in inline-javascript.

<img src="cmbbtn.jpg" onclick="javascript:MyFuntion()">

Is it valid?
If so where I need to define this function.

Thanks in advance.:)

Rupen Anjaria.
We can't avoid problems, but ofcourse can solve it.
  #2 (permalink)  
Old July 20th, 2005, 12:27 PM
Friend of Wrox
Join Date: Jun 2003
Location: High Wycombe, UK, United Kingdom.
Posts: 344
Thanks: 0
Thanked 1 Time in 1 Post

you can declare the function anywhere you want to on the page either in line or in a seperate external javascript file.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Extracting inline elements richardnspence XSLT 6 January 30th, 2008 09:59 AM
inline PDF naheedv Pro JSP 3 June 8th, 2007 01:34 AM
How inline view works ? jap SQL Server 2000 0 June 6th, 2005 03:34 AM
Inline Code to Project rodmcleay VS.NET 2002/2003 1 December 14th, 2004 10:38 PM
error in inline code yoord BOOK: Beginning ASP.NET 1.0 1 November 1st, 2004 05:13 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.