I\'m using the following to extract variables from a URL contained in a variable. It works fine in modern browsers but in IE8 it fails on the first variable but succeeds on
You can find both dimensions with a match or exec expression:
var p = 'http://sagensundesign.com?height=400&width=300';
var siz=p.match(/((height|width)=)(\d+)/g);
alert(siz)
/* returned value: (Array)
height=400, width=300
*/