dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: link problem

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    138

    link problem

    I am getting a flash of white when I click a link is there some way of preventing this.

  2. #2
    Join Date
    Mar 2012
    Posts
    1,840
    Browser? version? Is this on particular site(s)? If so, give an example...

  3. #3
    Join Date
    Sep 2013
    Posts
    221
    There are few ways to solve your problem.

    Javascript:

    (function () {

    /*
    1. Inject CSS which makes iframe invisible
    */

    var div = document.createElement('div'),
    ref = document.getElementsByTagName('base')[0] ||
    document.getElementsByTagName('script')[0];

    div.innerHTML = '­<style> iframe { visibility: hidden; } </style>';

    ref.parentNode.insertBefore(div, ref);


    /*
    2. When window loads, remove that CSS,
    making iframe visible again
    */

    window.onload = function() {
    div.parentNode.removeChild(div);
    }


    or load your HTML page before javascript.Inspite of puting JS page in header try it at the end

    Hope this helps.

  4. #4
    Join Date
    Apr 2013
    Posts
    13
    Its happen with all the browsers?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles