Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 15th, 2011, 12:33 PM   #1
manishchndk
Programmer
 
Join Date: Sep 2011
Posts: 30
Rep Power: 0 manishchndk is on a distinguished road
how to prevent page from refreshing

Does anybody know how to prevent the current page from refreshing for online test.
either refresh should not work or some logic of what to do when a user refresh page while giving online test.
manishchndk is offline   Reply With Quote
Old Dec 16th, 2011, 6:01 AM   #2
carolinehill
Newbie
 
Join Date: Aug 2011
Location: Burbank,California
Posts: 4
Rep Power: 0 carolinehill is on a distinguished road
Re: how to prevent page from refreshing

You can't stop the user from refreshing the page with PHP. PHP is server based programming language and such languages can't control the browser. It has to be done with Javascript.
carolinehill is offline   Reply With Quote
Old Dec 16th, 2011, 9:30 AM   #3
manishchndk
Programmer
 
Join Date: Sep 2011
Posts: 30
Rep Power: 0 manishchndk is on a distinguished road
Re: how to prevent page from refreshing

ok fine, but can any one tell me how to accomplish same using javascript
manishchndk is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Get on the First Page of Google for Any Keyword? praveen1 Other Tutorials and Articles 9 Dec 1st, 2012 4:15 AM
Reloading page causing erros NaikTharki PHP 4 Jul 30th, 2010 7:37 PM
Header/Logo design with the page? BUCHANKO HTML / XHTML / CSS 5 Jun 22nd, 2010 4:03 AM
"Loading..." message on first time page load TedT HTML / XHTML / CSS 3 Oct 17th, 2008 9:21 PM
Page Replacement Program (C++) redhatter Existing Project Development 1 Nov 20th, 2005 10:38 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:46 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC