SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: Simple onclick alert...
-
Aug 16, 2003, 07:07 #1
- Join Date
- Aug 2002
- Location
- UK
- Posts
- 596
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Simple onclick alert...
What I have is a link 'What is this?' and I want, when clicked upon, for an alert box to popup. I should be able to specify the text contained in the alert box, and for there to just be one button, an 'OK' button. I'm sure this is quite easy, I'm guessing it's something to do with onclick= but I'm not sure about these things. Please could someone point me in the right direction as to what I could do here? Thanks.
-
Aug 16, 2003, 07:14 #2
- Join Date
- Aug 2002
- Location
- UK
- Posts
- 596
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Nevermind, I can't believe it, I did it myself!
I just set the href to # and onclick to alert('message') and it worked! Wow, never thought it would be that easy...
-
Aug 16, 2003, 08:50 #3
- Join Date
- Feb 2000
- Location
- where the World once stood
- Posts
- 700
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Hi,
If you would like to see a different approach -- one using dHTML -- see the "Scrolling Divs" script/tutorial at my site (GrassBlade)
VinnyWhere the World Once Stood
the blades of grass
cut me still
Bookmarks