javascript - How to do multi-line Title in div tag? -


I would like to display a tooltip on mouse hover to the following div tag. But, it displays it as a single line. How do I display it for several lines?

  & lt; Div title = "a good & lt; br / & gt; day" & gt; Blown & lt; / Div & gt; It appears that modern browsers will show a tooltip on the new line after the train's return:  

< Pre> & lt ;! - I have "row" - & gt; The word is entered after; & Lt; Div id = "myDiv" title = "first line multilevel" & gt; Hello World! & Lt; / Div & gt;

Or you can try the value defined by Javascript:

  var myDiv = document.getElementById ('myDiv'); MyDiv.title = "First line \ n multiline";  

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -