ソースの表示を実行する
サンプルソース
<input type="button" value="ソース表示" onclick="location='view-source:'+location.href"> |
解説
location='view-source:'・・・右クリックで「ソース表示」と同じ動きをするサンプル
関連する内容
<input type="button" value="ソース表示" onclick="location='view-source:'+location.href"> |