[ js ] javascript:void(0) 在 https 內會有警 …

看板Ajax作者 (阿邦@dbtsai.org)時間16年前 (2009/06/30 16:59), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
首先我的 網站是 https://www.dbtsai.org/blog document.write('<script id="__ie_onload_for_inove" defer src="javascript:void(0)"></script>'); 本來 menu.js 裡面有以上那一行, 但是這樣跑在 https 環境中 IE 會說網頁內有不安全的連線, 建議不要開啟. 於是我把 "javascript:void(0)" 改成 "#", 根據網路上的論壇. 結果現在變成了網頁程式錯誤... 請問這裡 javascript:void(0) 有什們意義呢? 這個問題有好的解決方案嘛? 謝謝 -- Tsai, Dong-Bang 蔡東邦 ----------------------------------- Blog: http://www.dbtsai.org/blog -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.109.214.4
文章代碼(AID): #1AITGAeR (Ajax)
文章代碼(AID): #1AITGAeR (Ajax)