Generating Popup Windows as Browser Windows

Q

How to generate popup windows as Web browser windows?

✍: FYIcenter.com

A

If you want to generate a popup window as a real browser window, you can use the window.open() method. See the following JavaScript code outline:

<a href="javascript:pWindowOpen();">Click your ...
...
<script language="JavaScript">
/*
*  Popup Blocker Test - P_WINDOW_OPEN
*  - Popup Windows in Forms of Browser Windows
*
*  A popup window shows up in the form of a browser window.
*  JavaScript codes implemented to call the code method.
* 
*  Version of 2007.01.01
*  Download at http://sqa.fyicenter.com/tools/
*  Copyright (C) 2007 FYIcenter.com. All rights reserved.
*/
function pWindowOpen() {
   fyicenterWin = window.open('popup_blocker_test_...
      'toolbar=no,scrollbars=no,resizeable=no,width...
}
</script>

You can also visit Popup Blocker Test - P_WINDOW_OPEN page to get the complete source code and to see how it works.

2007-01-17, 8452🔥, 0💬