Hello all,
I'm working on a function that checks the css href in an included html file and if it is incorrect it adjusts it. my problem is in this piece of code
Now the m[0] variable is set before this piece of code, containingCode:hrefrege = /href=\"[^ ]+\"/i; originalHref = m[0].match(hrefrege); originalHrefArray = originalHref.split("/"); alert(originalHrefArray[0]);the originalHref matches the href="css/style_oud.css" however the split function doesn't recognise originalHref as a string.Code:<LINK HREF="css/style_oud.css" REL="stylesheet" TYPE="text/css">
Why doesn't it recognise it and how do i fix my problem?
Thanks in advance,
Keldaros


Reply With Quote
Bookmarks