Javascript Tooltip / Posts /

Tooltip javascript

0
load the tooltip window.load or document.ready?
Can change this?

Thank you very much!
Patricio  10 years ago   viewed: 3463    

3 Answers

0
The tooltip is instantiated only by the first time the tooltip.pop(...) or tooltip.ajax(...) is called when mouse is hovering a target element. It is instantiated neither by window.onload nor DOM ready.
Milo   10 years ago
0

In fact $(document).ready() or $(document).ready(function()) has many advantages over window.load, so it is often used.

tunnel rush

cinda
  one year ago
0

When it comes to loading a tooltip in JavaScript, the best practice is to wait for the entire page to finish loading before initializing the tooltip. This ensures that all the HTML elements, stylesheets, and scripts are fully loaded and ready to be used.

You can achieve this by using the window.onload event or the $(document).ready() function in jQuery. Both of these methods ensure that the DOM is ready before executing the tooltip code.

foundation repair near me

Lorie
  11 months ago

   

Your name*
Password
(Optional. Used to modify this post afterwords)
+ =  

Ask your Own Question

  • If your question is related to the topic of this post, you can post your question to this page by clicking the "Post a reply" button at left;

  • When you want to start a new page for your question: