style-sheet and <noscript>
如果禁用了 javascript,我已经实现了一个警报弹出窗口。弹出窗口有警告消息和确定按钮。在所有浏览器中禁用 javascript 之前,确定按钮将不起作用。当启用 javascript 并且不重新加载页面时
On FF:-
单击确定按钮页面会重新加载
Other Browsers:-
单击确定按钮没有任何反应
我希望我的 Ok 按钮在所有其他浏览器(IE、Opera、Safari、Chrome)中的行为都像 FF,我该如何实现?
编辑我的代码如下
<!-- [START] Following code is get runed to show pop-up when javascript is disabled -->
<noscript>
<div id="javascript_disabled_fade" class="black_overlay" style="display:block;"></div>
<div id="pagewrap-light-small" style="display:block;">
<div id="javascript_disabled_popup" class="white_content_javascript_disabled" style="margin-left:-185px;margin-top:-143px;width: 371px;height:287px;padding:0px;">
<div style="margin:0px;padding:0px;">
<table align="center" style="text-align:center;width:371px;height:287px; " cellpadding="0" cellspacing="0" border="0" >
<tr>
<td align="center" style="text-align:center;padding-left:2px;height:150px;padding-top:8px;" colspan="2">
<img style="border: 0px none ;" src="/images/logo-small.png"/><br/>
<img style="border:none;" src="/images/account_management.png"/>
</td>
</tr>
<tr>
<td colspan="2" align="center" style="font-weight:bold;font-size:12px;color:#5a5a5a; text-align:center; line-height:18px;" >
The site makes extensive use of JavaScript.<br/>
Please enable <span style="color:red;">JavaScript</span> in your browser.
</td>
</tr>
<tr>
<td valign="top" align="center" style="padding-top:24px;" colspan="2">
<a href="javascript:void(0)" onclick="window.location.reload();" class="okGreen"></a>
</td></tr>
</table>
</div>
</div>
</div>
</noscript>
<!-- [END] Following code is get runed to show pop-up when javascript is disabled -->