Showing posts with label pop. Show all posts
Showing posts with label pop. Show all posts

Tuesday, April 11, 2017

How to Show Pop Up Window Using JavaScript

How to Show Pop Up Window Using JavaScript


You can show pop up window By using JavaScript window.open() method which loads specified URL into a new or existing window and returns the window object that represents that window.

The window.open() method takes four optional arguments which are URL of the window, Window name, attributes of window, the boolean value to replace or not the current window.

Syntax: window.open("windowname.html", "New Window", "width=width in pixel, height=height in pixel, status=yes or no, resizable=yes or no");

The first argument of window.open() method allows to display given URL in the new window. If the argument is omitted, the special blank-page URL:about:blank is used.

The second argument of window.open() method is a string which specifies a window name. If the argument is omitted, the special name "_blank" is used which opens a new, unnamed window.

The third optional argument of window.open() method is a comma-separated list of size and features attributes for the new window to be opened. If you omit this argument, the new window is given a default size and has a full set of UI components: a menu bar, status bar, toolbar etc.

The fourth optional argument of window.open() is useful only when the second argument names an existing window. It is a boolean value that indicates whether the URL specified as the first argument should replace the current entry in the windows browsing history: written true, or create a new entry in the windows browsing history: written false. And omitting the argument is same as written false.

Here is an example to open a small but resizable browser window with a status bar but no menu bar, tool-bar, or location bar.

window.open("new_window.html", "New Window", "width=400, 
height=350, status=yes, resizable=yes");

Here status bar is showing using status=yes and the window is resizable  using resizable=yes, if you dont want to show status bar, you can use status=no and want the fixed window, can use resizable=no in the argument.

To open a new pop up window on onclick event of button, you can use the following code.

<input type=button name="open" value="Open window"
onclick="window.open(http://www.siteforinfotech.com/p/about-us.html
,new window, width=400, height=350, status=yes, resizable=yes);">

Preview:



To open a new pop up window on <a> href link, you can use the following code.

<a href="javascript:void window.open
(http://www.siteforinfotech.com/p/about-us.html, new window,
width=400, height=350, status=yes, resizable=yes);
">Open Pop Up window</a>

Preview:

Open Pop Up window

The return value of the window.open() method is the window object that represents the named or newly created window. You can use this window object in you JavaScript code to refer to the new window and to specify the properties on it as given below.

var w=window.open();
w.alert("You are going to visit:http://www.siteforinfotech.com");
w.location="http://www.siteforinfotech.com";


Here you can specify other properties like width, height, status, resizable given above. And you can assign variable w for any windows event or on any event trigger using JavaScript.

"Pop Up" and "Pop Under" advertisements are made by using this method window.open() while you browse the web. JavaScript codes that tries to open a pop up window when the browser first loads, browsers blocked them. So the advertisements are made to run pop up windows only in response to a user action such as clicking on button and clicking on link. 




Related Search Terms

  • Pop Up Window Using JavaScript

  • Show Pop Up Using JavaScript


Related Posts:

  • How to go Back Browsing History Using JavaScript

  • How to Click Button Using JavaScript?

  • How to Write JavaScript Function as URL in Hyperlink?

  • How to use Round, Random, Min and Max in JavaScript

  • How to Concatenate, Join and Sort Array in JavaScript?

  • How to Loop Through JavaScript Array?

  • How to Loop using JavaScript?

  • How to Show Pop Up Boxes Using JavaScript?

  • How to Write Conditional Statements in JavaScript?

  • How to Write JavaScript With HTML?

  • How to create Changeable Date and Time Using JavaScript?

  • How to Validate a HTML Form Using JavaScript?

  • How to create a simple form using HTML?

  • How to Create JavaScript Image Sideshow with Links

  • How to Display Date Format in JavaScript?

  • How to Validate a HTML Form Using JavaScript?

  • What are the Different Ways to Redirect Page in JavaScript?

  • How to create Timer Using JavaScript?

  • How to make rounded corners border using CSS

  • How to Create Custom CSS Template for Printing

  • How to create a simple form using HTML?


Go to link Download

Read more »

Tuesday, January 17, 2017

How to Show Pop Up Boxes Using JavaScript

How to Show Pop Up Boxes Using JavaScript


Using JavaScript you can create three kinds of pop-up boxes, Alert box, Confirm box and prompt box.

Alert Box


An alert box is used if you want to make sure information comes through to the user. When an alert box pops up, the user will have to click on "OK" to processed.

Syntax:

alert("Alert Text")

Example:

<html>
<head>
<script type="text/javascript">
function display_alert()
{
alert("This is an alert box!")
}
</script>
</head>
<body>
<input type="button" onclick="display_alert()" value="Display alert box"/>
</body>
</html>

Preview:




 Conform box


A conform box is used if you want the user to verify or accept something. When a conform box pops up, the user will have to click either "OK" or "Cancel" to processed. If the user clicks "OK" the box returns true. If the user clicks "Cancel", the box returns false.

Syntax:

confirm{"Conform Text")

Example:

<html>
<head>
<script type="text/javascript">
function display_conform(){

r=confirm("Press a button");
if (r===true)
{
alert("You pressed OK!");
}
else
alert("You pressed Cancel");
}
</script>
<body>
<input type="button" onclick="display_conform()" value="Display a confirm box"/>
</body>
</html>

Preview:



 Prompt Box


A prompt box is used if you want the user to input a value before entering a page. When a prompt box pops up, the user will have to click "OK" or "Cancel" to processed entering in input value.
If the use clicks "OK" the box returns the input value. If the user clicks "Cancel" the box returns null.

Syntax:

prompt{"sometext", "defaultvalue"}

Example:

<html>
<head>
<script type="text/javascript">
function display_prompt(){
name=prompt("Please enter your name", "Your Name");
if ((name!=null) && name!=" ")
{
alert("Hello "+name+"! How are you today?");
}
}
</script>
</head>
<input type="button"onclick="display_prompt()" value="Display a prompt box"/>
</body>
</html>

Preview:



Read Next:How to Loop using JavaScript?

Related Search Terms

  • Javascript Pop Up Boxes

  • Javascript Alert Box

  • JavaScript Conform Box

  • JavaScript Prompt Box


Related Posts:

  • How To Create Simple Image Slideshow Using JavaScript ?

  • Image Slideshow with Navigation Buttons Using JavaScript 

  • How to create Changeable Date and Time Using JavaScript?

  • How to Create JavaScript Image Slideshow with LInks

  • How to Display Date Format in JavaScript?

  • How to Validate a HTML Form Using JavaScript?

  • What are the Different Ways to Redirect Page in JavaScript?

  • How to Detect Visitors Browser Using JavaScript?

  • How to make rounded corners border using CSS

  • How to Create Custom CSS Template for Printing

  • How to create a simple form using HTML?


Go to link Download

Read more »

Monday, January 2, 2017

How to Fix IDM Fake Serial Pop Up Message Guide

How to Fix IDM Fake Serial Pop Up Message Guide



IDM Fake Serial Pop-Up
Almost everyone is aware about Internet Download Manager (IDM). You might have been using this application since it helps you to download files from web at high speed. I would say, this is from one of the best tool to be used to download files from internet. But you may have been facing the pop up that IDM has been registered with the Fake serial number. This pop up is really very irritating since it appears every time when you are about to download some file or when you start your system. Here in this article I am going to reveal simple and easy steps to get rid of this pop up.
How to Fix ?
First of all uninstall all previous versions of cracks. Download Internet Download Manager Universal Crack Crack IDM using this crack. If pop-up still appearing after cracked, only then use the below methods.
  • Method 1
    1. Download and extract “IDM Fake Fixed”
    2. Then run the “Reset (Fixed).exe” as Administrator
    3. Click on “Trial Reset” tab [By default it sets to HELP tab]
    4. Uncheck the “Automatically” box
    5. Click on “Reset the IDM trial now” and wait for the process
  • Method 2
    1. Open RUN dialog box [Windows Key + R]
    2. Type “regedit” and hit ENTER
    3. Go to HKEY_CURRENT_USERSoftwareDownloadManager
    4. Find for “CheckUpdtVM”
    5. Change value to “0”
  • Method 3
    1. Go to the IDM directory
    2. Find for “IDMGrHlp.exe” and delete it
    3. Now find for “idmBroker.exe” and copy/paste in same folder
    4. Rename the copied file to “IDMGrHlp.exe”
    5. Restart your system to apply this effect
  • Method 4
    1. Go to the directory “C:WindowsSystem32driversetc”
    2. Find for “hosts”
    3. Right click on that file follow by Open With >> Notepad [Can be use any text editor]
    4. Now just copy the below lines of code and paste it after the last line in the “hosts” file
      127.0.0.1                     tonec.com
      127.0.0.1                    http://www.tonec.com
      127.0.0.1                     registeridm.com
      127.0.0.1                    http://www.registeridm.com
      127.0.0.1                     secure.registeridm.com
      127.0.0.1                     internetdownloadmanager.com
      127.0.0.1                    http://www.internetdownloadmanager.com
      127.0.0.1                     secure.internetdownloadmanager.com
      127.0.0.1                     mirror.internetdownloadmanager.com
      127.0.0.1                     mirror2.internetdownloadmanager.com
      127.0.0.1                     mirror3.internetdownloadmanager.com
    5. Save this file and restart your system to see the effect

Download IDM Fake Fixed

Go to link Download

Read more »

Thursday, November 17, 2016

Icon Pop Quiz Game Buatan Anak Indonesia yang Paling Populer

Icon Pop Quiz Game Buatan Anak Indonesia yang Paling Populer



Icon Pop Quiz, game buatan anak indonesia ini sangatlah populer. Icon Pop Quiz merupakan game simple yang banyak di unduh, lebih dari 8 juta unduhan dalam 2 bulan. wow, fantastis bukan. Pada game ini, kita akan dihadapkan untuk menebak karakter. sebelum memulai menjawab tebakan icon, kita memilih dahulu kategori yang ingin kita mainkan, disini ada 3 kategori yaitu Famous People, TV &Films, dan Character. setiap kategori terdiri dari 5 level (nantinya akan di update lagi). Penasaran dengan gamenya. silahkan langsung saja download disini.

Tampilan Home Icon Pop Quiz






Pilih Kategori sebelum memainkan



Pilih level, dimulai dari level 1



Pilih Icon yang Akan ditebak



Disini saya memilih gambar kaki

em, gambar kakinya ciapa ya ??? hehehehe

kemudian saya memilih gambar foto profil yang ad di facebook, none foto profil




pertama saya mengetikkan "mark zuckerberg" , eh dapet score 55. hehehe.. sebelumnya saya menuliskan nama yang salah, tapi pada tulisan ketiga baru benar.




Go to link Download

Read more »