Javascript window.open function to open all urls in a json feed -
i hope able point me in right direction this, sp in advance : ) i'm needing take comes in on json feed , use javascript take embedded links - getting document.getelementsbytagname - , convert them window.open function. i've got far with var links = document.getelementsbytagname('a'); var len = links.length; for(var i=0; i<len; i++) { links[i].target = "_blank"; } this adds location onto url, need take url href stings like <a href="http://myurl.com"</a> and return them in plain javascript call function window.open('http://myurl.com', '_blank', 'location=yes'); hope makes sense, , newbie help. allister a bit more... karaxuna - suggestion. though reason loop function didn't return needed, that's because of how i'm trying use it. i'm trying working phonegap mobile browser call, using inappbrowser function links open within app webview, not system browser. links need launch...