-KA-
Staff Alumn
- Joined
- Sep 15, 2006
- Messages
- 12,371
- Reaction score
- 40,234
I'm in need of help with HTML/JS...again. I have this big HTML test to do and I have completed 49/50 tests. Now this last one...well I can't get it...Maybe you can help me?
I need to create a green box (using css and <div>), then I need to place a random two-three word text in it, which is all easy. But here's the hard part for me - I need to write a javascript that makes it to pop up an error text box with the random text in it, when I double-click the box. (alert() function - must be used somewhere)
I meant that when i double-click the green box div I created...an alert box (like these error boxes) pops up and displays the text I had written in the green box. How to do that?
Help, PLEASE.
I need to create a green box (using css and <div>), then I need to place a random two-three word text in it, which is all easy. But here's the hard part for me - I need to write a javascript that makes it to pop up an error text box with the random text in it, when I double-click the box. (alert() function - must be used somewhere)
I meant that when i double-click the green box div I created...an alert box (like these error boxes) pops up and displays the text I had written in the green box. How to do that?
Help, PLEASE.