watthehell Posted September 6, 2007 Share Posted September 6, 2007 hi i am writing this code to display pop up from javascript tooltip var msgTips = '<font color="white"><strong>Reserved Date and Time</strong></font><br><a href="#" onClick='window.open("index.html","check","toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=300")';>Reserve Now</a>'; it is not working pls help Link to comment https://forums.phpfreaks.com/topic/68180-pop-up-error-pls-help/ Share on other sites More sharing options...
xenophobia Posted September 6, 2007 Share Posted September 6, 2007 Your string concatenation had some problems: var msgTips = "<font color=\"white\"><strong>Reserved Date and Time</strong></font><br><a href=\"#\" onClick='window.open(\"index.html\",\"check\",\"toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=300\")';>Reserve Now</a>"; use '\' right before your double quotes to escape the string. Link to comment https://forums.phpfreaks.com/topic/68180-pop-up-error-pls-help/#findComment-342992 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.