vytas Posted December 16, 2006 Share Posted December 16, 2006 I need help with javascript.I have my prompt box on the body onload="">So u get a prompt box when the page loadsBut i want if the prompt box end that u don't get the prompt box again could some1 help me ?And i don't want to send them to another page with the document.location="blabla"> Thing ! Link to comment Share on other sites More sharing options...
AbstractApproach Posted December 16, 2006 Share Posted December 16, 2006 I have my prompt box on the body onload="">So u get a prompt box when the page loadsBut i want if the prompt box end that u don't get the prompt box again could some1 help me ?And i don't want to send them to another page with the document.location="blabla"> Thing ! Not quite sure what you are doing here....But to answer at least one of your questions: if you want users to only see the box once, you must set a cookie saying they have seen the box, then check for the cookie on page load before showing the box (likely best to isolate this into a function).The procedure for doing this is in the w3cs tutorial.//Matt Link to comment Share on other sites More sharing options...
vytas Posted December 18, 2006 Author Share Posted December 18, 2006 Not quite sure what you are doing here....But to answer at least one of your questions: if you want users to only see the box once, you must set a cookie saying they have seen the box, then check for the cookie on page load before showing the box (likely best to isolate this into a function).The procedure for doing this is in the w3cs tutorial.//MattHow do i set a cookie didn't realy gone threw that tutorial but here's the script Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now