For Programmers: Free Programming Magazines  


Home > Archive > ASP > August 2007 > Auto Redirect to New Window









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Auto Redirect to New Window
scott

2007-08-02, 6:56 pm

I use the code below for general pop-ups on my pages. What I need to
accomplish is to have a page that when clicked, the page automatically opens
a pop up or redirects to a page on another site without the user having to
click a button. Is this possible with javascript?

CODE:

<a href="#"
onClick="javascript:window.open('my_popupPage. asp','dedicated','width=338,height=262,m
enu=no,toolbar=no,scrollbars=no,menubar=
no,resizable=no,status=no');">
<img border="0" src="images/myimage.gif" width="16" height="16"></a>



Tim Slattery

2007-08-02, 6:56 pm

"scott" <sbailey@mileslumber.com> wrote:

>I use the code below for general pop-ups on my pages. What I need to
>accomplish is to have a page that when clicked, the page automatically opens
>a pop up or redirects to a page on another site without the user having to
>click a button. Is this possible with javascript?


You say "when clicked" then "without the user having to click a
button". So what's being clicked?

Bear in mind that your intended function would likely be killed by
popup blockers.

--
Tim Slattery
MS MVP(DTS)
Slattery_T@bls.gov
http://members.cox.net/slatteryt
Jon Paal [MSMD]

2007-08-02, 6:56 pm

this is not an asp question, try the javascript group:

comp.lang.javascript


"scott" <sbailey@mileslumber.com>
.....Is this possible with javascript?
>



scott

2007-08-02, 6:56 pm

This would be the events.

1. You visit www.mysite.com
2. www.mysite.com/default.asp would automatically redirect you to
www.cnn.com/theSpecialPage.asp. (note: www.cnn.com/theSpecialPage.asp would
open maximized or just same size as the users normal pages would open.
Either would be fine.)


"Tim Slattery" <Slattery_T@bls.gov> wrote in message
news:fj04b3dtu54l2usr5oimcv24amqo6is4lj@
4ax.com...
> "scott" <sbailey@mileslumber.com> wrote:
>
>
> You say "when clicked" then "without the user having to click a
> button". So what's being clicked?
>
> Bear in mind that your intended function would likely be killed by
> popup blockers.
>
> --
> Tim Slattery
> MS MVP(DTS)
> Slattery_T@bls.gov
> http://members.cox.net/slatteryt



scott

2007-08-02, 6:56 pm

do you know what the settings are for that js group.

For example, what would be to equivilant to msnews.microsoft.com?

"Jon Paal [MSMD]" <Jon nospam Paal @ everywhere dot com> wrote in message
news:13b41ickp7g0c10@corp.supernews.com...
> this is not an asp question, try the javascript group:
>
> comp.lang.javascript
>
>
> "scott" <sbailey@mileslumber.com>
> .....Is this possible with javascript?
>
>



Evertjan.

2007-08-02, 6:56 pm

scott wrote on 02 aug 2007 in microsoft.public.inetserver.asp.general:

> "Jon Paal [MSMD]" <Jon nospam Paal @ everywhere dot com> wrote in
> message news:13b41ickp7g0c10@corp.supernews.com...

[Please do not toppost on usenet]
[color=darkred]
> do you know what the settings are for that js group.


Eh? It is a Usenet group, you do not need "settings" for that.

> For example, what would be to equivilant to msnews.microsoft.com?


That is a server, perhaps, though I doubt it, a news [=usenet] server.
A server is not equivalent to a usenet group.



--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
scott

2007-08-02, 9:56 pm

what's the url to comp.lang.javascript?

"Evertjan." <exjxw.hannivoort@interxnl.net> wrote in message
news:Xns9980C5EF16EC6eejj99@194.109.133.242...
> scott wrote on 02 aug 2007 in microsoft.public.inetserver.asp.general:
>
>
> [Please do not toppost on usenet]
>
>
> Eh? It is a Usenet group, you do not need "settings" for that.
>
>
> That is a server, perhaps, though I doubt it, a news [=usenet] server.
> A server is not equivalent to a usenet group.
>
>
>
> --
> Evertjan.
> The Netherlands.
> (Please change the x'es to dots in my emailaddress)



Evertjan.

2007-08-03, 3:56 am

scott wrote on 03 aug 2007 in microsoft.public.inetserver.asp.general:
> "Evertjan." <exjxw.hannivoort@interxnl.net> wrote in message
> news:Xns9980C5EF16EC6eejj99@194.109.133.242...

[I ASK AGAIN: Please do not toppost on usenet]
[color=darkred]
> what's the url to comp.lang.javascript?


Usenet, being twice as old as the web, does not need or have URL's.

Just access your local news server on internet,
it should carry comp.lang.javascript.

Read up on usenet:
<http://en.wikipedia.org/wiki/Usenet>


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Bob Barrows [MVP]

2007-08-03, 7:56 am

The corresponding msnews group is
microsoft.public.scripting.jscript

And no, I will not involve myself in silly arguments as to whether jscript
is javascript (yes, I know it isn't ... )

scott wrote:[color=darkred]
> do you know what the settings are for that js group.
>
> For example, what would be to equivilant to msnews.microsoft.com?
>
> "Jon Paal [MSMD]" <Jon nospam Paal @ everywhere dot com> wrote in
> message news:13b41ickp7g0c10@corp.supernews.com...

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com