Click here to Skip to main content
15,895,256 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Wanted some help Pin
Bradml19-Nov-06 19:54
Bradml19-Nov-06 19:54 
GeneralRe: Wanted some help Pin
Christian Graus19-Nov-06 22:21
protectorChristian Graus19-Nov-06 22:21 
GeneralRe: Wanted some help Pin
Bradml19-Nov-06 23:43
Bradml19-Nov-06 23:43 
QuestionClosing A Window [modified] Pin
#realJSOP17-Nov-06 8:28
mve#realJSOP17-Nov-06 8:28 
AnswerRe: Closing A Window Pin
Steve Echols17-Nov-06 8:55
Steve Echols17-Nov-06 8:55 
AnswerRe: Closing A Window Pin
led mike17-Nov-06 9:48
led mike17-Nov-06 9:48 
GeneralRe: Closing A Window Pin
Ginu U Santhark19-Nov-06 19:32
Ginu U Santhark19-Nov-06 19:32 
AnswerRe: Closing A Window Pin
Steve Echols17-Nov-06 10:24
Steve Echols17-Nov-06 10:24 
Take a look at this lame hack I wrote. Works, but if you click close when the popup window isn't open, it briefly flashes on the taskbar, and in FF the window isn't completely off the screen. Inject the same code into page1 and page2, and give it a shot.

<html>
<head>
<script type="text/javascript">

function open_help_window()
{
window.open("","my_help_window","toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=yes, copyhistory=yes, width=400, height=400")
}

function close_help_window()
{
// if the window already exists, window.open will give us a reference to it
// otherwise a new window is created off the screen and immediately closed

// attempt to position window off the screen (not quite in FF)
var x = screen.width + 100;
var y = screen.height + 100;

var win = window.open("","my_help_window","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, copyhistory=yes, width=1, height=1, screenX=" + x + ", screenY=" + y + ", left=" + x + ", top=" + y);
if ( win )
win.close();
}

</script>
</head>

<body>
<form>
<input type="button" value="Open Help" onclick="open_help_window()">
<br>
<input type="button" value="Close Help" onclick="close_help_window()">
</form>
</body>

</html>



- S
50 cups of coffee and you know it's on!
AnswerRe: Closing A Window Pin
Bradml17-Nov-06 21:43
Bradml17-Nov-06 21:43 
Questionscripts Pin
Nakul Sharma17-Nov-06 4:12
Nakul Sharma17-Nov-06 4:12 
AnswerRe: scripts Pin
Fred_Smith17-Nov-06 12:45
Fred_Smith17-Nov-06 12:45 
AnswerRe: scripts Pin
Bradml17-Nov-06 21:46
Bradml17-Nov-06 21:46 
GeneralcreateTextRange Useage Pin
Bassam Abdul-Baki17-Nov-06 4:11
professionalBassam Abdul-Baki17-Nov-06 4:11 
QuestionWhy switch case doesn't work on JavaScript?? Pin
Savas Cilve17-Nov-06 2:58
Savas Cilve17-Nov-06 2:58 
AnswerRe: Why switch case doesn't work on JavaScript?? Pin
Ernesto Manuel17-Nov-06 3:34
Ernesto Manuel17-Nov-06 3:34 
AnswerRe: Why switch case doesn't work on JavaScript?? Pin
Guffa17-Nov-06 3:38
Guffa17-Nov-06 3:38 
GeneralRe: Why switch case doesn't work on JavaScript?? Pin
Savas Cilve17-Nov-06 3:44
Savas Cilve17-Nov-06 3:44 
GeneralWho wants to criticize my website [modified] Pin
BigAndy17-Nov-06 2:38
BigAndy17-Nov-06 2:38 
GeneralRe: Who wants to criticize my website Pin
guiqul16317-Nov-06 2:45
guiqul16317-Nov-06 2:45 
GeneralRe: Who wants to criticize my website Pin
BigAndy17-Nov-06 2:54
BigAndy17-Nov-06 2:54 
GeneralRe: Who wants to criticize my website Pin
guiqul16317-Nov-06 3:07
guiqul16317-Nov-06 3:07 
GeneralRe: Who wants to criticize my website Pin
François Gasnier17-Nov-06 3:17
François Gasnier17-Nov-06 3:17 
GeneralRe: Who wants to criticize my website Pin
Pete O'Hanlon17-Nov-06 3:21
mvePete O'Hanlon17-Nov-06 3:21 
GeneralRe: Who wants to criticize my website Pin
BigAndy17-Nov-06 3:22
BigAndy17-Nov-06 3:22 
GeneralRe: Who wants to criticize my website Pin
Paddy Boyd17-Nov-06 3:30
Paddy Boyd17-Nov-06 3:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.