php_novice2007 Posted July 27, 2007 Share Posted July 27, 2007 Hi, For the <body> tag, I know it has onload and onunload attributes which allow me to write some javascript code.. is there an "onrefresh" attribute? Basically I want to use javascript to call up a php page if the user clicks on the refresh button which would delete a file and regenerate it.. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/61955-tag/ Share on other sites More sharing options...
AndyB Posted July 27, 2007 Share Posted July 27, 2007 http://www.mediacollege.com/internet/javascript/page/reload.html - basic javascript Quote Link to comment https://forums.phpfreaks.com/topic/61955-tag/#findComment-308541 Share on other sites More sharing options...
ToonMariner Posted July 27, 2007 Share Posted July 27, 2007 I think that is something you shoudl be doing in php... so before you use thjis file check if it exists - if it does unlink() that file... then carry on as normal and regenerate it. Quote Link to comment https://forums.phpfreaks.com/topic/61955-tag/#findComment-308544 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.