Search:

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

Page 1 of 9 1 2 3 4

Search: Search took 0.01 seconds; generated 13 minute(s) ago.

  1. Replies
    4
    Views
    108

    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.
  2. Replies
    4
    Views
    108

    That leaves unwanted space below the iframe in...

    That leaves unwanted space below the iframe in Chrome and some other browsers.
  3. Replies
    4
    Views
    108

    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...
  4. 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:
  5. Replies
    1
    Views
    979

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

    padding:initial vs. padding:0

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


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

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

    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...
  10. Replies
    2
    Views
    906

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

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

    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...
  12. Replies
    4
    Views
    1,396

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

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

    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....
  14. Replies
    4
    Views
    1,396

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

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

    My poor English! Sorry, I should have used the verb confirm. :)
  16. Replies
    7
    Views
    1,975

    Thanks for admitting my code!

    Thanks for admitting my code!
  17. Replies
    7
    Views
    1,975

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

    Perfect answer! Thanks! :)
  19. Replies
    7
    Views
    1,975

    Minimum events to call on a dynamic link

    Sample:


    <!DOCTYPE html>
    <html>

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

    Thanks for the test, but please give it a try in IE11.
  21. 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.
  22. 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...
  23. Thanks again for the detailed answers and...

    Thanks again for the detailed answers and snippets! You've been always of great help! :)
  24. 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>
  25. But it shouldn't throw such an error as I change...

    But it shouldn't throw such an error as I change the iframe source in my function.
    I just learned I can partially resolve the issue if I wait until the iframe finishes loading: Demo. However, it...
Results 1 to 25 of 218
Page 1 of 9 1 2 3 4