... 方法 實(shí)例 實(shí)例 創(chuàng)建一個(gè)頁(yè)面上的后退按鈕: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>W3Cschool教程(w3cschool.cn)</title> <script> function goBack(){ window.history.back() } </script> </head> <body>...
http://o2fo.com/jsref/met-his-back.html...器都不支持。 實(shí)例 實(shí)例 創(chuàng)建一個(gè)彈出窗口: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>W3Cschool教程(w3cschool.cn)</title> <script> function show_popup(){ var p=window.createPopup(); var pbody=p.document.body; ...
http://o2fo.com/jsref/met-win-createpopup.html...d() 方法 實(shí)例 實(shí)例 頁(yè)面上創(chuàng)建一個(gè)前進(jìn)按鈕: <!DOCTYPE html> <html> <head> <script> function goForward(){ window.history.forward() } </script> </head> <body> <input type="button" value="前進(jìn)" onclick="goForward()"> </body> ...
http://o2fo.com/jsref/met-his-forward.html...例 實(shí)例 確保新窗口獲得焦點(diǎn)(發(fā)送新窗口前): <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>W3Cschool教程(w3cschool.cn)</title> <script> function openWin(){ myWindow=window.open('','','width=200,height=100'); myWindow....
http://o2fo.com/jsref/met-win-focus.html...持 go() 方法 實(shí)例 實(shí)例 點(diǎn)擊返回前兩個(gè)頁(yè)面: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>W3Cschool教程(w3cschool.cn)</title> <script> function goBack(){ window.history.go(-2) } </script> </head> <body> ...
http://o2fo.com/jsref/met-his-go.html... 實(shí)例 把窗口相對(duì)其當(dāng)前位置移動(dòng)250個(gè)像素: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>W3Cschool教程(w3cschool.cn)</title> <script> function openWin(){ myWindow=window.open('','','width=200,height=10...
http://o2fo.com/jsref/met-win-moveby.html...。 實(shí)例 實(shí)例 新窗口移動(dòng)到屏幕上方左上角: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>W3Cschool教程(w3cschool.cn)</title> <script> function openWin(){ myWindow=window.open('','','width=200,height=100'); myWindow.d...
http://o2fo.com/jsref/met-win-moveto.html... 實(shí)例 實(shí)例 使用 assign() 來(lái)加載一個(gè)新的文檔: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>W3Cschool教程(w3cschool.cn)</title> <script> function newDoc(){ window.location.assign("http://o2fo.com") } </script>...
http://o2fo.com/jsref/met-loc-assign.html...實(shí)例 實(shí)例 使用 replace() 方法來(lái)替換當(dāng)前文檔: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>W3Cschool教程(w3cschool.cn)</title> <script> function replaceDoc(){ window.location.replace("http://o2fo.com") } </scr...
http://o2fo.com/jsref/met-loc-replace.html...com") 相對(duì) URL - 指向網(wǎng)站內(nèi)的一個(gè)頁(yè)面(比如 cite="example.html") 技術(shù)描述 Return Value: 字符串, 代表著源文檔的URL地址 更多實(shí)例 實(shí)例 Change the value of the cite attribute: document.getElementById("myIns").cite="http://www.example.com/whyweinsertedsometext.htm...
http://o2fo.com/jsref/prop-ins-cite.html抱歉,暫時(shí)沒(méi)有相關(guān)的微課
w3cschool 建議您:
抱歉,暫時(shí)沒(méi)有相關(guān)的視頻課程
w3cschool 建議您:
抱歉,暫時(shí)沒(méi)有相關(guān)的教程
w3cschool 建議您:
... 方法 實(shí)例 實(shí)例 創(chuàng)建一個(gè)頁(yè)面上的后退按鈕: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>W3Cschool教程(w3cschool.cn)</title> <script> function goBack(){ window.history.back() } </script> </head> <body>...
http://o2fo.com/jsref/met-his-back.html...器都不支持。 實(shí)例 實(shí)例 創(chuàng)建一個(gè)彈出窗口: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>W3Cschool教程(w3cschool.cn)</title> <script> function show_popup(){ var p=window.createPopup(); var pbody=p.document.body; ...
http://o2fo.com/jsref/met-win-createpopup.html...d() 方法 實(shí)例 實(shí)例 頁(yè)面上創(chuàng)建一個(gè)前進(jìn)按鈕: <!DOCTYPE html> <html> <head> <script> function goForward(){ window.history.forward() } </script> </head> <body> <input type="button" value="前進(jìn)" onclick="goForward()"> </body> ...
http://o2fo.com/jsref/met-his-forward.html...例 實(shí)例 確保新窗口獲得焦點(diǎn)(發(fā)送新窗口前): <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>W3Cschool教程(w3cschool.cn)</title> <script> function openWin(){ myWindow=window.open('','','width=200,height=100'); myWindow....
http://o2fo.com/jsref/met-win-focus.html...持 go() 方法 實(shí)例 實(shí)例 點(diǎn)擊返回前兩個(gè)頁(yè)面: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>W3Cschool教程(w3cschool.cn)</title> <script> function goBack(){ window.history.go(-2) } </script> </head> <body> ...
http://o2fo.com/jsref/met-his-go.html... 實(shí)例 把窗口相對(duì)其當(dāng)前位置移動(dòng)250個(gè)像素: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>W3Cschool教程(w3cschool.cn)</title> <script> function openWin(){ myWindow=window.open('','','width=200,height=10...
http://o2fo.com/jsref/met-win-moveby.html...。 實(shí)例 實(shí)例 新窗口移動(dòng)到屏幕上方左上角: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>W3Cschool教程(w3cschool.cn)</title> <script> function openWin(){ myWindow=window.open('','','width=200,height=100'); myWindow.d...
http://o2fo.com/jsref/met-win-moveto.html... 實(shí)例 實(shí)例 使用 assign() 來(lái)加載一個(gè)新的文檔: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>W3Cschool教程(w3cschool.cn)</title> <script> function newDoc(){ window.location.assign("http://o2fo.com") } </script>...
http://o2fo.com/jsref/met-loc-assign.html...實(shí)例 實(shí)例 使用 replace() 方法來(lái)替換當(dāng)前文檔: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>W3Cschool教程(w3cschool.cn)</title> <script> function replaceDoc(){ window.location.replace("http://o2fo.com") } </scr...
http://o2fo.com/jsref/met-loc-replace.html...com") 相對(duì) URL - 指向網(wǎng)站內(nèi)的一個(gè)頁(yè)面(比如 cite="example.html") 技術(shù)描述 Return Value: 字符串, 代表著源文檔的URL地址 更多實(shí)例 實(shí)例 Change the value of the cite attribute: document.getElementById("myIns").cite="http://www.example.com/whyweinsertedsometext.htm...
http://o2fo.com/jsref/prop-ins-cite.html抱歉,暫時(shí)沒(méi)有相關(guān)的文章
w3cschool 建議您: