RSS
people

Javascript select a div content

How to using a javascript command to select and deselect a div tag content?
As I know, we can use a select() funtion to select text field value:
document.getElementById(‘username’).select();
But the above example does not work for a div or span tag.

For the div or span tag, it is pretty simply, just few lines command will do.
read more »

No Comments | Tags: ,

html mailto command

Today, due to some task’s requirement, I need to play around with the html mailto command.
As I know, the mailto command is just prompt up the visitor email client & auto fill in the To field.

After some research, I found that actually the mailto command is more power than what I though.

Below is some example:

read more »

5 Comments | Tags: ,

Disable select in Mozilla Firefox

This post is to teaching a simple way on how to disable the select on the mozilla firefox. As I know, if you want to disable select in the Internet Explorer(IE), you may using the javascript onselect event to return a “FALSE”. This method will be only work for IE but not Firefox.

read more »

8 Comments | Tags: ,