點擊頁面的按鈕,使之打開一個新窗口,加載一個頁面的方法有哪些呢?
阿新 • • 發佈:2018-02-05
body del .html blank oca pos type target put
1.<base target="_blank" />
頁面只要有a標簽,都會打開一個新的頁面;
2.<input type=‘button‘ value=‘new‘ onclick="window.location=‘new.html‘;">
當前頁面進行跳轉
3.<input type="button" value="new" onclick="window.open(‘new.html‘,‘_blank‘)"/>
會打開一個新的頁面
4.<form target=‘_blank‘ action=‘new.html‘>
<input type=‘submit‘ value=‘new‘/>
</form>
會打開一個新的頁面
點擊頁面的按鈕,使之打開一個新窗口,加載一個頁面的方法有哪些呢?