Alert is a JavaScript function to display notifications in a dialog.

learn more… | top users | synonyms

0
votes
2answers
1k views

handle JS alert using IE webdriver, Selenium

I need to click on a cancel button for a Java based application. I am using IE Driver, Eclipse IDE and my application only supports IE.[i am scripting in Java] Here is the situation, Login to the ...
64
votes
8answers
120k views

How to edit a JavaScript alert box title?

I'm generating a JavaScript alert with following code in C# .NET page: Response.Write("<script language=JavaScript> alert('Hi select a valid date'); </script>"); It displays an alert ...
1
vote
3answers
363 views

How to implement a confirm dialog box with If condition in JQuery/Javascript with Asp.net

I have a bit of Jquery (sort of mixed with traditional javascript) to check a textbox. On my sample asp page, there is a button, a textbox and on code behind there is a button_click event. What I am ...
0
votes
1answer
104 views

jQuery's document ready faulty on Nokia? (Alert fixes jQuery in Nokia. Suggest alternatives?)

I have some jQuery running on a mobile web site that does some layout calculations and resizes a few elements. This was working fine on the browsers we support--even Nokia's--but I then received ...
0
votes
6answers
2k views

Pass Javascript Alert a Value

I'm looking for a simple javascscript alert box. I need to be able to pass the alert box a string of text. Is something like this possible? My syntax is probably wrong. <html> <head> ...
0
votes
0answers
95 views

How to remove dialog box when navigating with browser “back” button

I have a JSP page. When it loads, I display a dialog box with a condition from request like: <c:if test="$(params.flag=='Yes')" > alert("some message"); </c:if> After that, if I ...
3
votes
3answers
662 views

Changing the way a JavaScript Alert() or Prompt() looks

Is there any way to change the looks of an alert or prompt in javaScript ? things like adding an Image , changing the font color or size and what ever will make it look different ? thanks in advance ...
2
votes
2answers
389 views

Is this the right way to handle javascript alert dialogs using WebDriver?

It seems that in the ASP.NET WebDriver API, executing the following when there is no javascript alert present results in an exception: browser.SwitchTo().Alert(); IE and FF both throw a ...
0
votes
1answer
524 views

Customize the Prompt Box of Javascript

As the Title says, I am invoking a Prompt-box of very-flexible Javascript by the below command in my Silverlight application. string input = System.Windows.Browser.HtmlPage.Window.Invoke("prompt", new ...
2
votes
2answers
302 views

Code that will alert DOM Position [duplicate]

Possible Duplicate: JQuery to check for duplicate ids in a DOM Suppose i have a code: <div id="one"> <div id="two"></div> <div id="three"></div> ...
-4
votes
3answers
545 views

How to make this line bold? [duplicate]

Possible Duplicate: Changing the way a JavaScript Alert() or Prompt() looks I have a string in my JavaScript code here: _msg = "You have errors on Question Number: " + _qid + "\n"; I am ...
0
votes
3answers
428 views

javascript confirm action using document.write

I have a javascript function that I am trying to call when the confirm is true. I am using document.write because the source document is a .js file, not html. Before the true condition is executing, ...
1
vote
1answer
489 views

Handling javascript popup in watir

I am using autoit to handle javas script popup code as autoit.WinWaitActive("[Class:#32770]") result =autoit.ControlClick("[Class:#32770]","","Button1") But when I click on the button to open the ...
1
vote
2answers
404 views

alert message in Multilingual website

i am using resource files for showing html content(like label names ) in my multilingual website.The resource files are different for different countries.The website is built on Asp.Net MVC3. I am ...
0
votes
1answer
142 views

Chrome omitting words from my alert box

I have the following code on a webpage being served by a coldfusion 9 server. alert("Doing this now may result in loss of data") and when I trigger the alert box this is what I see. Doing this ...

1 2
15 30 50 per page