我想將輸入到輸入框中的文本傳遞到URL的中間,該URL將根據用戶「搜索」呈現嵌入式iframe。單詞之間的空格必須自動轉換爲「%20」或「+」。將輸入文本傳遞到URL以呈現新的iframe頁
在這裏看到的想什麼,我實現一個例子:
Enter a keyword or phrase into the box below to see if it's trending.
<br>
<input placeholder="***input***"></input>
<iframe src="http://www.google.com/trends/fetchComponent?hl=en-US&q=***INPUT***&cid=TIMESERIES_GRAPH_0&export=5&w=500&h=300"></iframe>
你是什麼實際問題?你試過什麼了?你正在談論你想要的,無處我看到這是我的問題,這是導致問題。有關如何提問的解釋,請參見[如何提問](http://stackoverflow.com/help/how-to-ask)。 – DragonSamu