2016-03-02 40 views
-2

首先,我創建一個包含框架的索引頁面,並將所有框架命名爲NASA google you tube等。 然後搜索頁面爲什麼目標不能在這裏工作

<input id="main_category_lan1" value="test" /> 
<a href="javascript:void(0)" 
    onmouseover=" 
    window.open('http://nasasearch.nasa.gov/search?utf8=%E2%9C%93&affiliate=nasa&query=' 
    +document.getElementById('main_category_lan1').value)", target="nasa">s</a> 
<a href="javascript:void(0)" 
    onmouseover="window.open('https://www.youtube.com/results?search_query=lecture' 
    +document.getElementById('main_category_lan1').value)",target="google">e</a> 

,但是這是行不通的,每次在新標籤頁打開時間。另外我想打開這兩個頁面再見一個按鈕。 我該怎麼辦?謝謝。

+0

請格式化你的代碼正確 –

+0

http://stackoverflow.com/help/how-to-ask第一清楚地讀這哥們和格式代碼實際你得到和你期待什麼 – Prasad

回答

相關問題