Need help with web script

SweetD

Next Up
Supporting Member
Moderator Emeritus
Joined
Jan 15, 2003
Posts
9,865
Reaction score
173
Location
Gilbert, AZ
I am trying to create a pop-up to my website this is the script I am using anyone else see were the problem is? It will not even open a new window.

Thanks,
D



[size=-1]This goes in the <head></head> section:[/size] [size=-1]<!-- Start script goes in head tag-->[/size]
[size=-1]<script language="JavaScript">[/size]
[size=-1]<!-- hide from JavaScript-challenged browsers[/size]
[size=-1]function openWindow(/Support/support.html) { popupWin = window.open(url,'remote','menubar=no,toolbar=no,location=no,[/size]
[size=-1]directories=no,status=no,scrollbars=no,resizable=yes,[/size]
[size=-1]dependent,width=400,height=[/size]
[size=-1]400,left=50,top=50')} // done hiding --></script><!-- End[/size]
[size=-1]script, goes in Head tag -->[/size]
 

Ryanwb

ASFN IDOL
BANNED BY MODERATORS
Joined
May 13, 2002
Posts
35,576
Reaction score
6
Location
Mesa
SweetD said:
I am trying to create a pop-up to my website this is the script I am using anyone else see were the problem is? It will not even open a new window.

Thanks,
D



[size=-1]This goes in the <head></head> section:[/size] [size=-1]<!-- Start script goes in head tag-->[/size]
[size=-1]<script language="JavaScript">[/size]
[size=-1]<!-- hide from JavaScript-challenged browsers[/size]
[size=-1]function openWindow(/Support/support.html) { popupWin = window.open(url,'remote','menubar=no,toolbar=no,location=no,[/size]
[size=-1]directories=no,status=no,scrollbars=no,resizable=yes,[/size]
[size=-1]dependent,width=400,height=[/size]
[size=-1]400,left=50,top=50')} // done hiding --></script><!-- End[/size]
[size=-1]script, goes in Head tag -->[/size]

Your calling a page that it can't reference, you need the full html tag in there
 

jw7

Woof!
LEGACY MEMBER
Supporting Member
Joined
Aug 10, 2002
Posts
8,194
Reaction score
7
Location
Ahwatukee
First I hate pop-ups. Shame on you! :D

:geekmode:

The script you have is only defining the function. That is placed in the header. You need to call the function from within the <body> section.

This is a full HTML page shell that will work:

(edit, for some reason did not paste right - you have to remove the space in the word "height")

<html>

<head>

<script type="text/javascript">

<!-- hide from JavaScript-challenged browsers

function openWindow(url)

{window.open(url, "TEST", "menubar=no,toolbar=no,location=no," +

"directories=no,status=no,resizable=yes,width=400,height=400,left=50,top=50")

}

// -->

</script>

</head>

<body>

<script type="text/javascript">

<!--

openWindow ("http://www.arizonasportsfans.com");

// -->

</script>

</body>

</html>


 
OP
OP
SweetD

SweetD

Next Up
Supporting Member
Moderator Emeritus
Joined
Jan 15, 2003
Posts
9,865
Reaction score
173
Location
Gilbert, AZ
jw7 said:
First I hate pop-ups. Shame on you! :D

:geekmode:


Thanks I will give it a run tonight. I hate pop-ups as well. I am using it to launch a IM applicaition when my clients access my website, No BS adds or porn links (Sorry Ryan)
 
OP
OP
SweetD

SweetD

Next Up
Supporting Member
Moderator Emeritus
Joined
Jan 15, 2003
Posts
9,865
Reaction score
173
Location
Gilbert, AZ
Toro said:
Call a professional.

I did there are professional web designers here. Plus it is not that special of a script
 

Latest posts

Forum statistics

Threads
552,849
Posts
5,403,449
Members
6,315
Latest member
SewingChick65
Top