javascript - mydiv keep coming after refreshing the page -


i have mydiv on site fades out after 10 seconds when refresh page 'll comes again. need know if can add code in .js vanished visitor if refresh site again. have tried cookie far no success need know if can add code in js file let work?

here have in .js make div disappears after 10 seconds.

settimeout(function() {     $('#mydiv').fadeout('fast'); }, 10000); 

you can use 'document.referrer' property of page see if last page page or not. if was, don't display div. that's best can think of.

'document.referrer' gives url of page linked page.


Comments

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -