Search:

Type: Posts; User: Rain Lover; Keyword(s):

Page 1 of 9 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    1
    Views
    574

    Checkbox toggle in Chrome and Opera

    Steps to reproduce the issue:


    In your browser Settings select Continue where you/I left off under On startup.
    Navigate to the demo.
    Check the checkbox.
    Edit the text.
    Close your browser...
  2. Data type of object style property value

    Consider this:


    main {
    width: 400px;
    height: 100px;
    border: 1px solid #C3C3C3;
    display: flex;
    }
    main div {
  3. Replies
    3
    Views
    845

    Thanks for the answer, but would you mind...

    Thanks for the answer, but would you mind teaching me something: I don't understand return. What does it do in JavaScript? Does it mean "Do nothing"?
  4. Replies
    3
    Views
    845

    Firefox fires on choose, not on change

    Consider this:


    <input type="file" id="filePicker">
    <script>
    document.getElementById('filePicker').onchange = function() {
    alert('Hi!');
    };
    </script>
  5. Replies
    7
    Views
    2,116

    Thanks for the suggestions! :)

    Thanks for the suggestions! :)
  6. Replies
    7
    Views
    2,116

    The point is enough space differs from browser to...

    The point is enough space differs from browser to browser. In addition, Google might change the form style and size in the future, which is out of my control.
  7. Replies
    7
    Views
    2,116

    That leaves unwanted space below the iframe in...

    That leaves unwanted space below the iframe in Chrome and some other browsers.
  8. Replies
    7
    Views
    2,116

    Cross-browser Iframe Height

    I have a Google form embedded into my blog:
    http://tmblrlabs.tumblr.com/contact
    Simplified demo:
    https://jsfiddle.net/kexgcd0a/

    It looks ideal on Chrome — neither an extra scrollbar nor...
  9. onbeforeunload event parameter and empty return value

    Q1: I have seen the following code in most sources:


    window.onbeforeunload = function () {
    return 'You might lose your data!';
    };

    For example:
  10. Replies
    1
    Views
    1,223

    Attribute Default Value

    Can you get an attribute default value so you don't have to repeat it in the following example:


    <p title="foo" id="p">Hello, world!</p>
    <input type="text" id="i">
    <script>
    var p =...
  11. Replies
    1
    Views
    1,606

    padding:initial vs. padding:0

    Does padding:initial have any advantage over padding:0? Example:


    <style>
    textarea {
    padding: 0;
    }
    </style>
    <textarea>Hello, world!</textarea>
  12. Replies
    1
    Views
    1,321

    Comparison with 0 and JSLint error

    Here's the code:


    <input type="number" value="0" id="input">
    <script>
    if (document.getElementById('input').value == 0) {
    alert('Hello, world!');
    }
    </script>
  13. HTML Pencil: an online HTML editor with real-time preview

    HTML Pencil is an online HTML editor created for modern browsers.

    Please review the source code and provide feedback:


    <!DOCTYPE html>
    <html lang="en">

    <head>
    <meta charset="UTF-8">
  14. Replies
    3
    Views
    3,084

    Target=“_blank” vs window.open

    I'm working on an application where users enter some input and they shouldn't leave the page when clicking on share links, e.g. a Facebook share link:

    <a...
  15. Replies
    2
    Views
    1,189

    Thanks for the explanation! I finally decided to...

    Thanks for the explanation! I finally decided to use two separate functions.
  16. Replies
    2
    Views
    1,189

    One element, multiple events

    In jQuery you can easily do it like this:


    $("#foo").focus(function () {
    // Do this.
    }).blur(function () {
    // Do that.
    });

    Can we do something similar in JavaScript so we don't...
  17. Replies
    4
    Views
    1,988

    Yes, it seems to be working with no problem....

    Yes, it seems to be working with no problem.
    Thanks, anyway!
  18. Replies
    4
    Views
    1,988

    Thanks to HTML5 File API...

    Thanks to HTML5 File API now we can even read a file content with JavaScript: demo.




    Sorry if the question isn't very clear!
    I mean you cannot re-select the same file twice in a row, i.e....
  19. Replies
    4
    Views
    1,988

    Upload the same file

    You cannot select and upload the same file except in Firefox, which mistakenly allows you to do so:


    <input type="file" id="fileChooser">
    document.getElementById('fileChooser').onchange =...
  20. Replies
    7
    Views
    2,507

    My poor English! Sorry, I should have used the...

    My poor English! Sorry, I should have used the verb confirm. :)
  21. Replies
    7
    Views
    2,507

    Thanks for admitting my code!

    Thanks for admitting my code!
  22. Replies
    7
    Views
    2,507

    It refers to my previous thread...

    It refers to my previous thread. Since it has a different question I thought I'd better keep them separate and open a new thread. As you see in the demo it's a text editor based on whose content the...
  23. Perfect answer! Thanks! :)

    Perfect answer! Thanks! :)
  24. Replies
    7
    Views
    2,507

    Minimum events to call on a dynamic link

    Sample:


    <!DOCTYPE html>
    <html>

    <head>
    <meta charset="UTF-8">
    <title>Dynamic Link</title>
    </head>
  25. Thanks for the test, but please give it a try in...

    Thanks for the test, but please give it a try in IE11.
Results 1 to 25 of 223
Page 1 of 9 1 2 3 4