0
message in javascript
how can i show a message whitout alert
14 Antworten
+ 1
Abdo Gardam
//you are such a noob
+ 4
//document.write("hello") ;
https://www.sololearn.com/learn/JavaScript/1124/
+ 3
https://code.sololearn.com/W1jG7sDx95T6/?ref=app
+ 3
Abdo Gardam
//how can you say there is nothing, where this is a lesson created by sololearn about "document.write()"
+ 1
@shudarshan rai there is nothing
+ 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
+ 1
Abdo Gardam because app is redirecting you to browser, clear default browser settings
+ 1
@shudarshan rai there is noting in this link i m connected from the website not the app
+ 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.
+ 1
Abdo Gardam
//describe more i will try to help
+ 1
this is the message code
+ 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>
+ 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>
+ 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 .