The noscript tag does that.
http://www.w3schools.com/TAGS/tag_noscript.asp
No it doesn't. <NOSCRIPT> provides alternative content when the visitor has disabled scripting in their browser. Read the article before posting next time.
aReJay
<script>
alert('aReJay: Just a fucking noob');
</script>
<noscript>
<script>
alert('Wtf? Why didnt this run? I AM a noob???');
</script>
</noscript>
<rant>
You are totally noob mate.
I 've been hacking using noscript before you were born...
</rant>
Let me shed some knowledge on your ignorant arrogance.
Code:<script> alert('aReJay: Just a fucking noob'); </script>
This pice of code inside the body of an html page WILL popup a message box stating the obvious.
Now if someone does the following...
Code:<noscript> <script> alert('Wtf? Why didnt this run? I AM a noob???'); </script> </noscript>
This baby will NOT pop up the message box.
Now, I would suggest that you go study a bit and then you might be able to comment again on this topic.
<rant>
I hate arrogant fools that think they know stuff. You people need to fucking study and actually test before you open your f&*%&$%^king mouth.
</rant>
<script>
nodeIframe.docShell.allowJavascript = false;
</script>
<IFRAME SECURITY="restricted" src="http://www.microsoft.com"></IFRAME>
The only reason that message wouldn't pop is because <noscript> tag is for showing content for users without scripts enabled. Obviously, that means they will only see what's inside the <noscript></noscript> tags if they have scripting disabled. Essentially, that means it's technically impossible to execute a script that's contained in the noscript tags.
You really should have read the article before posting...and then read it a second time before defending your original post. Nobody wants bad info, and you're spreading it like the plague.
you can easily disable javascript in the iframe for internet explorer by changing the security level