Hi

Is there a function in javascript the same as PHP's exit()

I have:

<script>
****EXIT OR EQUIVILENT IN JAVASCRIPT*****
</script>

<a id="java" style="color:#FFFFFF; ">Enable javascript to view my website</a>

This tells me if javascript is on or off.

I am not aware of any function in javascript which is equivalent to php's exit function ! But I guess you are looking for <noscript> .

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.