0

message in javascript

how can i show a message whitout alert

7th Feb 2019, 10:23 AM
ABDELMOUGHIT GARDAM
ABDELMOUGHIT GARDAM  - avatar
14 Respostas
+ 1
Abdo Gardam //you are such a noob
8th Feb 2019, 10:28 AM
Sudarshan Rai
Sudarshan Rai - avatar
7th Feb 2019, 1:12 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 3
https://code.sololearn.com/W1jG7sDx95T6/?ref=app
7th Feb 2019, 1:07 PM
Gordon
Gordon - avatar
+ 3
Abdo Gardam //how can you say there is nothing, where this is a lesson created by sololearn about "document.write()"
7th Feb 2019, 10:28 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 1
@shudarshan rai there is nothing
7th Feb 2019, 2:02 PM
ABDELMOUGHIT GARDAM
ABDELMOUGHIT GARDAM  - avatar
+ 1
@shurdarshan rai when i click this link Page Not Found The requested page could not be found. Home Our Courses Code Playground Discuss Blog Contact Privacy Policy this is what is showen noting else no course
8th Feb 2019, 8:15 AM
ABDELMOUGHIT GARDAM
ABDELMOUGHIT GARDAM  - avatar
+ 1
Abdo Gardam because app is redirecting you to browser, clear default browser settings
8th Feb 2019, 9:26 AM
Sudarshan Rai
Sudarshan Rai - avatar
+ 1
@shudarshan rai there is noting in this link i m connected from the website not the app
8th Feb 2019, 10:15 AM
ABDELMOUGHIT GARDAM
ABDELMOUGHIT GARDAM  - avatar
+ 1
i create another div and i create a message box inside.i want to customize my code when an events is activated the div is showen.
8th Feb 2019, 10:39 AM
ABDELMOUGHIT GARDAM
ABDELMOUGHIT GARDAM  - avatar
+ 1
Abdo Gardam //describe more i will try to help
8th Feb 2019, 10:46 AM
Sudarshan Rai
Sudarshan Rai - avatar
+ 1
this is the message code
8th Feb 2019, 10:49 AM
ABDELMOUGHIT GARDAM
ABDELMOUGHIT GARDAM  - avatar
+ 1
<div class="callout"> <div class="callout-header">CalloutHeader</div> <span class="closebtn" onclick="this.parentElement.style.display='none';">X</span> <div class="callout-container"> <a href="">You are waiting for 20 seconds !!!</a> </div> </div>
8th Feb 2019, 10:50 AM
ABDELMOUGHIT GARDAM
ABDELMOUGHIT GARDAM  - avatar
+ 1
<script type="text/javascript"> function sleep(delay) { var start = new Date().getTime(); while (new Date().getTime() < start + delay); } </script> <script type="text/javascript"> function abo(){ console.log("Wait for 60 seconds."); sleep(20000) console.log("60 seconds passed."); } </script> <script> function rca(){ console.log("HELLO!"); } var intervalID = setInterval(function() { $("#mydiv2").toggle(); $("#mydiv1").toggle(); }, 5000); setTimeout(function() { clearInterval(intervalID); }, 110000); setInterval(function(){ location.reload(); }, 120000); </script>
8th Feb 2019, 10:51 AM
ABDELMOUGHIT GARDAM
ABDELMOUGHIT GARDAM  - avatar
+ 1
when i double click a sleep of 20 seconds is activated.what i want is when i double click and sleep is activate the message must be showen automatiqly just when timer is activated .
8th Feb 2019, 10:53 AM
ABDELMOUGHIT GARDAM
ABDELMOUGHIT GARDAM  - avatar