StefanRSA Posted January 29, 2010 Share Posted January 29, 2010 I have a function: <script type="text/javascript"> function viewcalendar() { kalendarik = window.open("/member/php_calendar/calendar.php", "kalendarik" , "location=0, menubar=0, scrollbars=0, status=0, titlebar=0, toolbar=0, directories=0, resizable=1, width=200, height=240, top=50, left=250"); kalendarik.resizeTo(200, 240); kalendarik.moveTo(250, 50); } </script> I have a text field that is READONLY. Next to the field is a <a href to call the function and it is working correctly: <input name="fname" id="fid" READONLY value="" type="text" ><a href="javascript:viewcalendar()"> Click Here</a> I also want the onFocus to be called when a user click on the field but it is not working??? Why not? <input name="fname" id="fid" READONLY value="" type="text" onClick="viewcalendar();"> Quote Link to comment https://forums.phpfreaks.com/topic/190216-function-not-working-on-onfocus-but-works-in/ Share on other sites More sharing options...
StefanRSA Posted January 29, 2010 Author Share Posted January 29, 2010 Anybody? Quote Link to comment https://forums.phpfreaks.com/topic/190216-function-not-working-on-onfocus-but-works-in/#findComment-1003594 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.