New Window Help?

This is a discussion on "New Window Help?" within the JavaScript Forum section. This forum, and the thread "New Window Help? are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old May 27th, 2007, 17:39
New Member
Join Date: May 2007
Location: UK
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question New Window Help?

Hello.
I know absolutely NOTHING about javascript so I wondered if you guys could help me with this...

Code: Select all
<script>
<!--
document.write(unescape("<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Error#</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="Generator" content="Scription.Co.Nr">
<SCRIPT TYPE="text/javascript">
<!--
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=750,height=560,scrollbars=yes');
return false;
}
//-->
</SCRIPT>
<BODY onLoad="popup('http://www.freewebs.com/habbzam/client.html', 'client')">
</head>
<body style="background-color: transparent; background-image: none; margin: 10px;">
</body>
</html>
 <html>
<font color="000000" face="arial black" size="40">Sorry. An error has occured. Please try again later.</font>
</body></html>"));
//-->
</script>
I'm using it to bring up another pop-up where the link is.
I don't know what's wrong with it but it wont work.
Could anyone help? I would greatly appreciate it.
Thanks.
Reply With Quote

  #2 (permalink)  
Old Jun 1st, 2007, 13:06
New Member
Join Date: Jun 2007
Location: pune
Age: 24
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: New Window Help?

Hi try this it will work fine


<html>
<head>
<title>Error#</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="Generator" content="Scription.Co.Nr">
<SCRIPT language='javascript' TYPE="text/javascript">

function popup(mylink,windowname)
{

if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=750,height=560,scrollbars=yes');
return false;
}

</SCRIPT>
</head>
<BODY onLoad="javascriptopup('http://www.freewebs.com/habbzam/client.html','client')">

<body style="background-color: transparent; background-image: none; margin: 10px;">
</body>
</html>
<html>
<font color="000000" face="arial black" size="40">Sorry. An error has occured. Please try again later.</font>
</body></html>
Reply With Quote
Reply

Tags
help

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Open another new window from javascript window thehermitage JavaScript Forum 10 Jan 27th, 2008 19:42
Change open in new window to open in same window nsr500rossi JavaScript Forum 2 Jan 18th, 2008 14:13
[SOLVED] open new window from main window AdRock Other Programming Languages 1 Nov 1st, 2007 02:45
I don't want new window daygoes JavaScript Forum 1 Sep 11th, 2006 17:22
Pop Up Window bruno89 Web Page Design 9 Aug 22nd, 2006 14:20


All times are GMT. The time now is 10:40.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43