※ ChatGPTを利用し、要約された質問です(原文:target="_blank")
test1.htmlにtarget="_blank"を追加する方法
このQ&Aのポイント
「test1.html」を「別ウィンドウ」で開くためには、リンク要素に「target="_blank"」を追加する必要があります。
具体的には、リンク要素にある「onclick="parent.location.href='../test1.htm';window.event.cancelBubble=true;"」の直前に以下のように「target="_blank"」を追加します。
<a href="../test1.htm" target="_blank">リンク</a>
下記の記述は「test1.html」に飛ぶソースです。
test1.htmlを開く際に「別ウィンドウ」で開きたい為、「target="_blank"」を入れたいのですが、どこに入れれば良いのでしょうか?
<div v:shape="_x0000_s3165" class=O
onclick="parent.location.href='../test1.htm';window.event.cancelBubble=true;"
style='cursor:hand;position:absolute;top:22.89%;left:29.78%;width:7.4%;
height:3.61%'>
<div style='mso-line-spacing:"100 50 0";mso-char-wrap:1;mso-kinsoku-overflow:
1;position:absolute;top:0%;left:0%;width:100.0%;height:100.0%'><span lang=JA
style='font-family:"MS Pゴシック";mso-fareast-font-family:"MS Pゴシック";mso-fareast-hint:
yes;mso-ansi-language:EN-US'>リンク</span><span lang=JA style='font-family:"MS Pゴシック";
mso-fareast-font-family:"MS Pゴシック";mso-ansi-language:EN-US;mso-special-format:
lastCR;display:none'>
</span></div>
</div>
よろしくお願いします。