1 / 11

網頁切換移轉

網頁切換移轉. JS vs. ASP.NET. 網頁切換移轉 by JavaScript. 使用前端的瀏覽器來進行 Location.href Window.navigate() Window.Open(). 寫在 HTML 物件的 onclick 事件中,亦可以傳遞參數. 網頁切換移轉 by JavaScript. 設定 ID 與 VALUE 屬性. 網頁切換移轉 by JavaScript. 網頁切換移轉 by JavaScript. onclick= ‘ location.href= “ http://www.kimo.com.tw ”’

brigit
Download Presentation

網頁切換移轉

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 網頁切換移轉 JS vs. ASP.NET

  2. 網頁切換移轉 by JavaScript • 使用前端的瀏覽器來進行 • Location.href • Window.navigate() • Window.Open() 寫在HTML物件的onclick事件中,亦可以傳遞參數

  3. 網頁切換移轉 by JavaScript 設定ID與VALUE屬性

  4. 網頁切換移轉 by JavaScript

  5. 網頁切換移轉 by JavaScript onclick=‘location.href=“http://www.kimo.com.tw”’ onclick='window.navigate("http://www.kimo.com.tw")' onclick='window.open("http://www.kimo.com.tw")' 最後一個可以開新視窗

  6. 網頁切換移轉 by ASP.NET • 使用後端伺服器來進行 • Response.Redirect() 可以使用任何形式網址 • Server.Transfer() 只能限於同目錄或是子目錄下的aspx檔案 寫在伺服器控制項的click事件中,亦可以傳遞參數

  7. 網頁切換移轉 by ASP.NET 設定Text屬性

  8. 網頁切換移轉 by ASP.NET Response.Redirect("http://www.kimo.com.tw");

  9. 網頁切換移轉 by ASP.NET Server.Transfer("http://www.kimo.com.tw");

  10. 網頁切換移轉 by JavaScript+ASP.NET <Script language=JavaScript> alert('資料新增成功!'); </Script> Dim funcWin_Open1 As String funcWin_Open1 = "<Script language=""JavaScript"">" funcWin_Open1 += "alert('資料新增成功!');" funcWin_Open1 += "</" + "Script>" Response.Write(funcWin_Open1)

  11. 網頁切換移轉 by JavaScript+ASP.NET <Script language=JavaScript> window.open('http://www.kimo.com.tw','上課時數資料','scrollbars=yes,resizable=yes,width=370,height=250'); </Script> Dim funcWin_Open1 As String funcWin_Open1 = "<Script language=""JavaScript"">" funcWin_Open1 += "window.open('http://www.kimo.com.tw','上課時數資料','scrollbars=yes,resizable=yes,width=370,height=250');" funcWin_Open1 += "</" + "Script>" Response.Write(funcWin_Open1)

More Related