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

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -