javascript alert with variable and text

 

 

 

 

I am trying to bring up a javascript alert with my variables from php.The purpose of this script is to upload a picture to a server and then display the markdown code for the user to use that image. I am aiming to output the following if the file uploads correctly: ![Alternative Text](http JavaScript statements are terminated by a semicolon . The alert(aString) function (Line 8) popsIn HTML4/XHTML1.0, you need to include the attribute type"text/ javascript" in the die() How can I add the string contained in error between the two script strings so it will output properly as a javascript alert? Alert(Your text goes hereyour var goes here) I find out the code I should have put. Alerts with variables are among the most useful things in javascript coding. You can use them to refer to someone by their name, to make a mini MadLibs game, or even for showing quiz results. This article will show you how to make a variable-based alert. Hi, I need to add text string and variables in a javascript alert box in code behind, for example code could give a message like this with a new line in betweenResponse.Write("