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 Quote Link to comment 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. Quote Link to comment 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.