我試圖顯示一條消息,如果在瀏覽器中沒有啓用JavaScript,然後我想不再繼續加載頁面。即時通訊使用PHP的,所以我做了終止代碼,如果沒有找到javascript
<?php exit;?>
在noscipt但儘管瀏覽器已啓用JavaScript的PHP代碼出口工程... 我使用的代碼是這樣的:
<noscript>
<div style="text-align:center; margin-top:15px; color:#f00; margin-bottom:10px;text-decoration: blink;">
<h1>
Please enable javascript<br style="margin-bottom: 5px;"/>
<h3>Else the system will not work correctly.</h3>
</h1>
</div>
<div align="center">
<div class="title" style="font:bold 18px arial">Enabling Javascript</div>
For: <strong>FireFox</strong>
Go To:<strong>Options > Content</strong><br/> and Check the Enable Javascript.
<br/>OR<br/>
Refer this link to enable javascript according to your browser<br/>
<a href="http://www.enable-javascript.com/">http://www.enable-javascript.com/</a>
<?php exit;?>
</div>
</noscript>
我應該怎麼不進一步進行,如果JavaScript是沒有啓用,如果啓用JS應該繼續...
PHP運行在服務器端,而''