Showing posts with label window. Show all posts
Showing posts with label window. 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 »

Saturday, December 31, 2016

HP pavillion S7730 desktop Drivers For window XP

HP pavillion S7730 desktop Drivers For window XP






It is recomended to install windows XP SP2 first before installing the driver. If you need to download follow the download link below:
Make sure you install Windows XP service pack 2.
http://www.microsoft.com/downloads/details.aspx?FamilyID=049C9DBE-3B8E-4F30
-8245-9E368D3CDB5A&displaylang=en

Install Chipset first:
Fall 2006 Original Intel Chipset Drivers
Install and the restart before continue to install other driver.

Graphic:
Fall 2006 Original NVIDIA Unified Graphics Drivers
NVIDIA Unified Graphics Driver Update

Audio/Sound (download and install the first one recomended)
ftp://152.104.238.19/pc/audio/WDM_R214.exe
or
Fall 2006 Original Realtek High Definition Audio Drivers

Wireless:
Fall 2006 Original HP USB Wireless LAN Drivers
but if the wireless didn,t work Loading the appropriate Intel (pro/100) network driver ill work.
(use force method to install driver)

Keyboard/Mouse Drivers
Fall 2006 Original HP Multimedia Keyboard/Mouse Drivers

Lan/Network
Fall 2006 Original Realtek LAN Drivers
--------------------------------------------------------------

Firmware:

Samsung P120S SP2X04C Series Hard Disk Drive Firmware Update
DVD-RW 16X HL-DT-ST DVDRRW GSA-H20L Drive Firmware Update
DVD-RW 16X LITE-ON DVDRW SHM-165H6S Drive Firmware Update
DVD-RW 16X TSSTcorp CD/DVDW TS-H652L Optical Drive Firmware Update

Software:

HP Update Security Vulnerability Update
Sonic Digital Media Plus/Deluxe Application Update
HP Update

Unistall tools(if only needed)

Promise RAID Driver Uninstall Utility

Go to link Download

Read more »

Sunday, December 11, 2016

How Can I Fix Active Window Fades to Desktop

How Can I Fix Active Window Fades to Desktop


Active Window Fades to Desktop

Im running Windows 7 Professional on a Dell Vostro 3500 laptop.
 Ill be working in a window when the window unexpectedly fades out and the screen reverts to my desktop.
 This annoying problem happens frequently and does not seem dependent on which
application I am using at the time.
 It doesnt seem to be a power setting or a low battery issue, since the screen doesnt go dark - it just goes back to my desktop. 
Need suggestions for a fix, please.

Solutions to the Problem Active Window Fades to Desktop

Download SmartPCFixer to Fix It (Free)

Stop putting your cursor at the very bottom right on your taskbar, because that is Show Desktop in Aero.
HTH

If I brought you Joy, cast your Vote! If I answered your question, click, Propose As Answer! >WT<

Tweak IE Options
  • Open Internet Explorer.
  • Go to "Tools > Internet Options > Advanced Tab".
  • Uncheck "Enable third-party browser extensions".
  • Click "Apply".
  • Reboot your computer.

Another Safe way to Repair the Problem: Active Window Fades to Desktop:

How to Fix Active Window Fades to Desktop with SmartPCFixer?

1. Download SmartPCFixer . Install it on your computer.  Click Scan, and it will perform a scan for your computer. The errors will be shown in the scan result.

2. After the scan is done, you can see the errors and problems need to be repaired. Click Fix All.

3. The Repair part is finished, the speed of your computer will be much higher than before and the errors have been removed. You can also use other functions in SmartPCFixer. Like dll downloading, windows updating and print spooler error repair.


Related: [Solved] Applications have stopped working with SP1 on Windows 7!,[Solved] I cant find auto complete text in word 2007,[Solution] I need to keep reinstalling eHome Infrared Transceiver driver everytime my computer shuts down.,How to Resolve - system restore not working windows 7?,Unable to open embedded word file on the intranet. [Solved],Solution to Error: Error: "0x81000032 make sure the C: drive is online and set to NTFS" when trying to backup to external hard drive.
,Troubleshoot:External Hard Drive not listed in Windows 7 backup wizard Error
,Im always being signed off so annoying Tech Support
,Solution to Problem: Impossible to use Internet Explorer! I keep getting the same error message every time i try to use IE.
,Solution to Problem: Referencing data in another file
,[Anwsered] Thinkpad 8611 Boot,How to Resolve - Svchost Helper?,Fast Solution to Problem: L30 101 Driver Windows 7,Troubleshooter of Error: Io Device,How to Fix Error - Dell Laptop Code 39?
Read More: Solution to Error: Add and remove programs wont respond,How Can You Fix - Ability to view Recent Documents in Office 2007 is disabled.?,How to Fix Problem - Acer aspire 5742z 5 minute running time before crash?,Troubleshoot:9 updates will not install code 646 unknown Error,A problem when any one enter the digital voice chat which there is no solution so far in the Middle East Tech Support,Cannot delete empty file icon on desktop...,Cannot download flashplayer,cant get the CIA review progrom install which is an older version,Cannot access one website-DNS server not responding.,Cant Receive or Send Vista Windows Mail - Router stopped recognizing DSL connection & wants to dial up

Go to link Download

Read more »