Search:

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

Page 1 of 9 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    1,389

    Thanks for the suggestions! :)

    Thanks for the suggestions! :)
  2. Replies
    7
    Views
    1,389

    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.
  3. Replies
    7
    Views
    1,389

    That leaves unwanted space below the iframe in...

    That leaves unwanted space below the iframe in Chrome and some other browsers.
  4. Replies
    7
    Views
    1,389

    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...
  5. 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:
  6. Replies
    1
    Views
    1,092

    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 =...
  7. Replies
    1
    Views
    1,374

    padding:initial vs. padding:0

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


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

    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>
  9. 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">
  10. Replies
    3
    Views
    2,559

    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...
  11. Replies
    2
    Views
    981

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

    Thanks for the explanation! I finally decided to use two separate functions.
  12. Replies
    2
    Views
    981

    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...
  13. Replies
    4
    Views
    1,585

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

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

    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....
  15. Replies
    4
    Views
    1,585

    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 =...
  16. Replies
    7
    Views
    2,184

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

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

    Thanks for admitting my code!

    Thanks for admitting my code!
  18. Replies
    7
    Views
    2,184

    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...
  19. Perfect answer! Thanks! :)

    Perfect answer! Thanks! :)
  20. Replies
    7
    Views
    2,184

    Minimum events to call on a dynamic link

    Sample:


    <!DOCTYPE html>
    <html>

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

    Thanks for the test, but please give it a try in IE11.
  22. The problem doesn't seem to be due to the...

    The problem doesn't seem to be due to the download attribute. Here's a demo without it:
    Demo.
  23. Open links made by createObjectURL in IE11

    Why can't you open the link in the following demo:
    http://html5-demos.appspot.com/static/a.download.html

    You cannot even right click and open it in a new tab/window. Is there any setting in the...
  24. Thanks again for the detailed answers and...

    Thanks again for the detailed answers and snippets! You've been always of great help! :)
  25. Thanks very much! Is it OK to simplify it like...

    Thanks very much! Is it OK to simplify it like this:


    <!DOCTYPE html>
    <html>

    <head>
    <meta charset="UTF-8">
    <title>Cross Origin Security Error 3</title>
    </head>
Results 1 to 25 of 219
Page 1 of 9 1 2 3 4