Published
- 1 min read
html run js when mouse over div
The solution for this is noted below
html run js when mouse over div
Solution
<div
id="sub1"
onmouseover="javascript:var mydiv = document.createElement('div'); mydiv.height = 100; mydiv.width = 100; mydiv.zindex = 1000; mydiv.innerHTML = 'Welcome!'; mydiv.position = 'absolute'; mydiv.top = 0; mydiv.left = 0;"
>
some text
</div>
Try other methods by searching on the site. That is if this doesn’t work