Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Javascript alert function
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedJavascript alert function

 Post Reply Post Reply
Author
ub3rl337ch3ch View Drop Down
Senior Member
Senior Member
Avatar

Joined: 16 February 2005
Location: Australia
Status: Offline
Points: 341
Direct Link To This Post Topic: Javascript alert function
    Posted: 03 May 2005 at 12:21am

this really stupid i know, but here goes:

I have the following image:

<img border="0" src="images/question.bmp" width="15" height="15" onclick="busy()">

which has the busy() function associated with it:
 
function busy(){
alert ("From your AVT Communicator window, transfer the BUSY amount from the WORKING TOTAL section")
}
 
I have the alert in a function as it seems to have issues with me doing onclick="alert ("the message")" directly in the image tag, and throws a syntax error at me when i load the page. With the alert, i initially had function busy() just alert("hello"), which it had problems with. Now that I have the fill message in there, it's complaining about "Object does not support this property or method"
 
does anyone have any ideas as to why this could be so?
Back to Top
Phat View Drop Down
Senior Member
Senior Member


Joined: 23 February 2003
Status: Offline
Points: 386
Direct Link To This Post Posted: 03 May 2005 at 2:38am
you need to do

<img src="../_img/xml.gif" width="36" height="14" border="0" onClick="alert('the message')">

use ' instead of "

Back to Top
ub3rl337ch3ch View Drop Down
Senior Member
Senior Member
Avatar

Joined: 16 February 2005
Location: Australia
Status: Offline
Points: 341
Direct Link To This Post Posted: 03 May 2005 at 3:18am
many, many thanks...Clap i was too tired to pick up on that one, and now i can slam a big red 'finished' stamp on this job... *joy*Big smile
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.