Archive for August 28th, 2007

Javascript is not enabled problem

Tuesday, August 28th, 2007

The Javascript is not enabled the popup window will not be open.

To avoid this situation to use following code;

<a href=“login.php” onClick=“javascript:window.open(’login.php’, ‘title’, ‘width=564PX, height=474PX, scrollbars=yes, top=0, left=0′); return false;”>Click To Login</a>

javascript is enabled–>onclick event will work

javascript is not enabled–> it will open a login.php page specified inside the href tag

Posted by Kalaivani S

How to open a popup window depending on screen width and height

Tuesday, August 28th, 2007

The following code will open a popup window depending on screen width and height

onClick=“javascript:window.open(’php page name’, ‘title’, ‘width=’+screen.width+’PX, height=’+screen.height+’PX, scrollbars=yes, top=0, left=0′);”

The above line will be placed inside the anchor tag

Posted by Kalaivani S

How to open a popup with specified width and height

Tuesday, August 28th, 2007

//Javascript

window.open(’login.php’,'title’,'width=564PX,height=474PX’);
-The above line will place inside the script  tag.
-It will open a login.php page with 564px as width and 474px as height of the page

//To open a popup window using ‘anchor’ tag

onClick=“javascript:window.open(’login.php’, ‘title’, ‘width=564PX, height=474PX’)”;

-The above code will open a popup window based on  the onclick event

Posted by Kalaivani S