window.open()メソッドで、リンクを小窓で開くようにしていました。
Google Chromと、Safariで昨日までリンクを開けていたのですが、どちらもwindow.open()が効かなくなってしまいました。
ポップアップブロックはしていません。
ボタンを押した時に、Chromだと左下にjavascript:w=setTimeout("openLink()", 100);と出ます。
html
1<a href='javascript:w=setTimeout("openLink()", 100);'><img src="Button.png" alt="ボタン" width="360" height="" style="position:absolute;top:10px;left:30px;"></a> 2 3<script type="text/javascript"> 4function openLink(){ 5 window.open("https://www.yahoo.co.jp/", "","width=600, height=500, menubar=no, toolbar=no, scrollbars=yes"); 6} 7</script>
Consoleには、
VM909:1 Uncaught ReferenceError: openLink is not defined at <anonymous>:1:1
と出ています。
回答2件
あなたの回答
tips
プレビュー