View Single Post
Old 06-10-2008, 06:11 PM   #8 (permalink)
Wildhoney
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

My code would only be executed if the end user has JavaScript enabled. If there is no JavaScript then they would simply see the HTML version. Take my little example, if you have JavaScript enabled then the link will take you to Google upon confirmation. If not it will degrade nicely and take you straight to Google without a prompt.

Edit: Or of course I could just return true upon confirmation. Either way.
Attached Files
File Type: html javascript-example.html (533 Bytes, 187 views)
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
The Following User Says Thank You to Wildhoney For This Useful Post:
delayedinsanity (06-10-2008)