I am trying to display a multi-line message in the alert box which is done by using "\n" as line breaks.
I have personally worked with line breaks in alert before and they worked but i am not able to figure out the problem with this one.
This is a calendar application, you can see a few dates in it being highlighted/anchored and I have set up alerts for those, which do not happen.
on view source, the alert message looks alright and here is the alert output
page: http://raghavan.100webcustomers.com/Calendar1.class.php
Code: Select all
onclick='alert("This is the URL you give as input.
the action can be anything like editPost/viewPost/viewAppointment/viewBlog/viewBirthday.
The id can be post_id, blog_id, appointment_id, birthday_record_id.
yourfilename.ext?action=youraction&id=32");'