Click here to Skip to main content
14,269,640 members
Rate this:
Please Sign up or sign in to vote.
See more:
I want to display a alert if javascript is disabled and for this i am using <noscript> tag. Alert message is displaying fine on the top of the page. But what if user dont want to enable javascript and want to close this alert message. So my question is- Is there any way to close javascript alert message like close button or anything?
Posted
Comments
Salman622 22-Jan-14 10:24am
   
to close javascript aleart() Method pop up there is already a default button namely ok to close that pop up
Pankaj Mahor 22-Jan-14 10:42am
   
Can u give me a example?
Sergey Alexandrovich Kryukov 22-Jan-14 12:20pm
   
What would it mean, "close alert message" (or even "close Javascript", for this matter)? :-)
If Javascript is working, it could make some sense, but if it is not, what is that "alert message"? It could not be Javascript alert, because Javascript is not working, so what is it, static HTML content? And if so, what to close? :-)

Therefore, I cannot see any sense in the question so far.

—SA
Pankaj Mahor 23-Jan-14 2:38am
   
Sorry my mistake, it is html content with <p> element under <noscript> tag. What i want is- user will be able to hide it or close it if that user dont want to enable javascript in his browser. How can i do it?
Killzone DeathMan 23-Jan-14 4:45am
   
if user dont want to enable javascript, the pop up can have a close button with "<a href="hidepopup.php"><img src="myclose.jpg" /></a>" and then with $_SESSION variable you can do the trick, but it is not good do it that way :P
Pankaj Mahor 23-Jan-14 5:06am
   
example?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100