Team:Warsaw/JSTest
From 2008.igem.org
(Difference between revisions)
Line 98: | Line 98: | ||
//alert(ans.split(/<h3>.*<\/h3>/i)); | //alert(ans.split(/<h3>.*<\/h3>/i)); | ||
var topics=ans.split(h3); | var topics=ans.split(h3); | ||
- | + | for (var i=0;i<topics.length;i++) | |
- | + | { | |
+ | if (topics[i]==title) return topics[i+1]; | ||
+ | } | ||
+ | |||
return "Search Error"; | return "Search Error"; |
Revision as of 00:15, 26 October 2008
|