Hi friends, below is the code, during the search that java script code finds the results, but that is not clickable. I want as it find the result during that time to assign anchor tag (href) with that result in "url"
for(i in results) { var obj = document.getElementById("Select1");
var strId = AddItem(obj, results[i]['titleNoFormatting'], strId); URLArray[obj.length] = results[i]['url']; }
Regards Vivek Sharma
|
| Author: MuniHemadriBabu.Jogi 31 Oct 2009 | Member Level: Gold | Rating:  Points: 2 |
Hi
You can use like below
document.getElementById('link1').innerHTML="hyperlink text"; document.getElementById('link1').href="http://www.url.com"; document.getElementById('link1').target="_blank";
|