Web browser text search

So I am working on a project where I have to search some HTML documents for a possible text string. This lead me to an interesting find in how browsers do searching on text.   Let’s look at the following HTML. <div><div...

Html5 Audio restart playback in iOS Safari

When using html5 audio and Apple’s safari browser on iOS there is a problem that occurs when you try to set the audio’s time. Html5 audio DOM object has an attribute called currentTime. This unfortunately isn’t available in iOS safari. This makes it...

Javascript Object Switcheroo

So I found out something interesting with javascript and objects. Let’s say you have a cube object in javascript that is defined by this function. function Cube(x, y, z); Now lets say we had set the z value to be zero. Why would we want a cube object when it is...