Programming JavaScript - Generating Popup Windows as Alert Dialog Boxes
Windows System and Applications Information Center
|
|
| Generating Popup Windows as Alert Dialog Boxes | | How to generate popup windows as alert dialog boxes? | | By: FYIcenter.com | If you want to generate a popup window as an alert dialog box,
you can use the window.alert() method.
See the following JavaScript code outline:
<a href="javascript:pWindowAlert();">Click your ...
...
<script language="JavaScript">
/*
* Popup Blocker Test - P_WINDOW_ALERT
* - Popup Windows in Forms of Alert Dialog Boxes
*
* A popup window shows up in the form of an alert
* dialog box. JavaScript codes implemented to call the
* alert method.
*
* Version of 2007.01.01
* Download at http://sqa.fyicenter.com/tools/
* Copyright (C) 2007 FYIcenter.com. All rights reserved.
*/
function pWindowAlert() {
fyicenterData = window.alert(':-) Thank you for visiti...
}
</script>
You can also visit
Popup Blocker Test - P_WINDOW_ALERT
page to get the complete source code and to see how it works.
| | ID: 285 | Rank: 1293 | Votes: 0 | Views: 150 | Submitted: 20070117 |
Copyright © 2009 FYIcenter.com
All rights in the contents of this Website are reserved by the individual author.
No part of the contents may be reproduced in any form without author's permission.
|
|
|