robert_gsfame Posted November 9, 2009 Share Posted November 9, 2009 Below is my code: echo "<input type='button' value='redirect' onClick='location.href=index.htm'>"; what is wrong with the code?? it's not working Link to comment https://forums.phpfreaks.com/topic/180831-solved-onclicklocationhrefindexhtm-not-working/ Share on other sites More sharing options...
rajivgonsalves Posted November 9, 2009 Share Posted November 9, 2009 should be echo "<input type='button' value='redirect' onClick=\"location.href='index.htm'\">"; Link to comment https://forums.phpfreaks.com/topic/180831-solved-onclicklocationhrefindexhtm-not-working/#findComment-953996 Share on other sites More sharing options...
robert_gsfame Posted November 9, 2009 Author Share Posted November 9, 2009 thank you so much !!! it works Link to comment https://forums.phpfreaks.com/topic/180831-solved-onclicklocationhrefindexhtm-not-working/#findComment-953997 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.