Jump to content

Pop UP Error pls help


watthehell

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.