My problem is this. I create a javascript object
that has a function associated with it. I instantiate this object and when it is instantiated, it assigns its function as an onclick handler to a div element on the page.
Here is a simple html that I created to demonstrate the problem...
I have an IMG "myImage" object which I want to copy into a div element "myDiv". It is very simple in IE
myDiv.innerHTML = myImage.outerHTML
Netscape does not support outerHTML. How can I do the same in Netscape?
Thanks
I'll try to present the problem in the most simple form:
I have an array of elements on the page - "elmts". I have another element "controller" with a onmousedown handler that sets a mouseover event on "elmts". For simplicity, the mouseover function just displays a message:
function...
What is the difference between "onclick" and "onmouseclick" event handlers? Do they apply to different objects? Dothey work differently? I am baffled?
Thanks for Help
Shai
I am trying to create a tooltip that shows the number of characters already typed as I progressively type text in a textarea. I want the tooltip (a div eleemnt) to follow the place where I type the character. I trap the onkeypress event and try to get its location to place the div element there...
I have this problem. I have a SELECT control with very long items in the options list. I do not want to have a very wide control and I would like to truncate the items so they can show in a narrower box. However, I still would like to enable the user to see the complete item. I would like to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.