Skip to main content

Displaying Text in an Alert Dialog

In JavaScript we can display information in windows called dialogs (or dialog boxes) that "pop up" on the screen to grab the user's attention. Dialogs typically diplay important messages to users browing the web page. JavaScript allows you easily to display a dialog box containing a message.

The following program displays Welcome to JavaScript Programming! as three lines in a predefined dialog called an alert dialog.

Alert dialog box displaying multiple lines.

<html>
  <head>
    <title>Printing Multiple Lines in Dialog Box</title>
    <script type = "text/javascript">
      <!--
      window.alert( "Welcome to \n JavaScript\nProgramming!" );
      // -->
    </script>
  </head>
  <body>
    <p>Click Refresh to run this script again.</p>
  </body>
</html>

The script user the browser's window object to display an alert dialog. The argument to the window object's alert method is the string to display.

Popular posts from this blog

List of software companies in Chennai

List of software companies in Chennai India's Information technology is an industry consisting of IT services and business process outsourcing(BPO). In india information technology is playing an important role, IT sector in India is generating more than 3 million employment. IT & ITeS industry in India has grown enormously. Indian Information Technology has made a mark in the world. Many MNC's are started branches in Indian cities like Bangalore, Chennai, Delhi etc,. The below table shows you list of software companies in Chennai. 4i Apps Solutions Pvt Ltd http://www.4iapps.com Abra Technologies http://www.abratechnologies.com Accel Frontline Ltd http://www.accelfrontline.in Adrenalin eSystems Ltd http://www.myadrenalin.com Akmin Technologies Pvt Ltd http://www.akmin.com American Megatrends India Pvt Ltd http://www.amiindia.co.in Anantara Solutions Pvt Ltd http://www.anantsol.com Arrowpoint Technologies Pvt Ltd http://www.arrowpointtechn

Job Openings at SYNTEL LIMITED :Walk In for Java Professionals : Pune : On 31 January 2015

Company : Syntel Limited Website :  www.syntelinc.com Education/Skills :  JAVA, Springs, Struts, Hibernate, Webservices Experience : 3 – 5 Years Location : Pune / Mumbai / Chennai Syntel (Nasdaq: SYNT) is a leading global provider of integrated information technology and Knowledge Process Outsourcing (KPO) solutions spanning the entire lifecycle of business and information systems and processes. Walk-In Interview For Java Professionals On 31st January 2015 @ Pune Industry Type  :  IT-Software / Software Services Role  :  Software Developer Compensation:     2,00,000 – 5,00,000 P.A Job Description : Minimum 3+ years experience in JAVA, Springs, Struts, Hibernate, Webservices. Minimum 2 years of experience in leading a team Worked in Onsite Offshore Model Proven client interfacing skills Skill Set : Java Yrs of Exp : 3-5 Years Job Location : Pune / Mumbai / Chennai Interview Date :  31st Jan 2015 Interview Location : Pune Venue : Syntel Limited 2nd Floor, Wing B SEZ Building – 4 SP Info

Freshers Openings at Intel as Application Developer On Nov 2014

Company      Intel Website       www.intel.in Eligibility      BE/B.Tech Experience   Freshers Location      Bangalore Job Role       Application Developer JOB SUMMARY: Company profile : Intel Corporation(www.intel.in), incorporated in 1968, designs and manufactures integrated digital technology platforms. A platform consists of a microprocessor and chipset. The Company sells these platforms primarily to original equipment manufacturers (OEMs), original design manufacturers (ODMs), and industrial and communications equipment manufacturers in the computing and communications industries. The Company’s platforms are used in a range of applications, such as personal computers (PCs) (including Ultrabook systems), data centers, tablets, smartphones, automobiles, automated factory systems and medical devices. Job Description : 1. Develops, implements, and maintains computer-based systems to meet business requirements. 2. Application Developers analyze, design, co