Using the <body> element as a wrapper — CSS Wizardry—CSS, Web Standards, Typography, and Grids by Harry Roberts
12 weeks ago
CSS Wizardry — CSS, Web Standards, Typography, Grids
css
12 weeks ago
Using document.createElement() to test for browser support for an element
february 2012
var test_audio= document.createElement("audio") //try and create sample audio element
var test_video= document.createElement("video") //try and create sample video element
var mediasupport={audio: (test_audio.play)? true : false, video: (test_video.play)? true : false}
alert("Audio Element support: " + mediasupport.audio + "n"
+ "Video Element support: " + mediasupport.video
)
browser
compatibility
javascript
element
test
var test_video= document.createElement("video") //try and create sample video element
var mediasupport={audio: (test_audio.play)? true : false, video: (test_video.play)? true : false}
alert("Audio Element support: " + mediasupport.audio + "n"
+ "Video Element support: " + mediasupport.video
)
february 2012
3d
ableton
accessibility
accessories
actionscript
adobe
advertising
agency
ajax
analytics
animation
app
apple
apps
art
articles
as3
audio
backup
bands
blog
blogs
board
books
browser
business
calendar
camera
case
cases
cd
cloud
cms
code
collaboration
community
components
computer
controller
cost
css
css3
culture
design
development
digital
diy
domain
download
drupal
dvd
ecommerce
editor
effects
electronic
electronica
electronics
email
entertainment
experimental
extension
extensions
film
finance
firefox
flash
font
fonts
food
forms
framework
free
freelance
freeware
fun
gadgets
gallery
gear
generator
gmail
google
graphics
grid
gtd
hacks
hardware
home
hosting
houston
howto
html
html5
humor
icons
ie
illustration
image
images
indie
inspiration
interactive
interface
internet
ipad
iphone
ipod
itunes
javascript
joomla
jquery
js
label
labels
layout
less
library
lightbox
live
mac
macosx
magazine
mail
management
manufacturing
maps
marketing
media
menu
midi
mobile
money
mp3
music
navigation
network
networking
news
nyc
online
opensource
organization
osx
photo
photography
photoshop
php
player
plugin
plugins
podcasting
portfolio
print
printing
production
productivity
programming
radio
recipes
recording
records
reference
research
resource
resources
responsive
review
reviews
room
savdev
screencast
scripts
scroll
search
security
sharing
shop
shopping
slider
slideshow
social
socialmedia
socialnetworking
software
sound
startup
statistics
storage
store
streaming
studio
sync
tech
technology
template
templates
testing
texas
themes
tips
tool
tools
tracking
training
tuition
tutorial
tutorials
tv
twitter
typography
ui
uk
usability
usb
utilities
utility
video
visualization
web
web2.0
webdesign
webdev
windows
wishlist
wordpress
work
writing
xhtml
xml
youtube