How to create a dialogue box before the page opens completely...? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to create a dialogue box before the page opens completely...?

20th May 2017, 9:12 PM
Mrinal Mukherjee
2 Answers
0
placing the script(javaScript) in the header tag
20th May 2017, 10:38 PM
BenjiSolo
BenjiSolo - avatar
0
create a function like this function open (){ alert("welcome "); } after creating the function in the body or head of an HTML page place and onload event in the body tag and assign the function to it this way <body onload=" open()"> Once that page loads the function will be called
14th Jun 2017, 1:20 PM
Martin Alemajoh
Martin Alemajoh - avatar