Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Auto Redirect to New Window

Reply
Thread Tools

Auto Redirect to New Window

 
 
scott
Guest
Posts: n/a
 
      08-02-2007
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,menu=no,toolbar =no,scrollbars=no,menubar=no,resizable=no,status=n o');">
<img border="0" src="images/myimage.gif" width="16" height="16"></a>



 
Reply With Quote
 
 
 
 
Tim Slattery
Guest
Posts: n/a
 
      08-02-2007
"scott" <(E-Mail Removed)> 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)
http://www.velocityreviews.com/forums/(E-Mail Removed)
http://members.cox.net/slatteryt
 
Reply With Quote
 
 
 
 
scott
Guest
Posts: n/a
 
      08-02-2007
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> "scott" <(E-Mail Removed)> 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)
> (E-Mail Removed)
> http://members.cox.net/slatteryt



 
Reply With Quote
 
scott
Guest
Posts: n/a
 
      08-02-2007
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:(E-Mail Removed)...
> this is not an asp question, try the javascript group:
>
> comp.lang.javascript
>
>
> "scott" <(E-Mail Removed)>
> .....Is this possible with javascript?
>>

>
>



 
Reply With Quote
 
Evertjan.
Guest
Posts: n/a
 
      08-02-2007
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:(E-Mail Removed)...
>> this is not an asp question, try the javascript group:
>>
>> comp.lang.javascript
>>


[Please do not toppost on usenet]

> 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)
 
Reply With Quote
 
scott
Guest
Posts: n/a
 
      08-02-2007
what's the url to comp.lang.javascript?

"Evertjan." <(E-Mail Removed)> wrote in message
news:Xns9980C5EF16EC6eejj99@194.109.133.242...
> 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:(E-Mail Removed)...
>>> this is not an asp question, try the javascript group:
>>>
>>> comp.lang.javascript
>>>

>
> [Please do not toppost on usenet]
>
>> 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)



 
Reply With Quote
 
Evertjan.
Guest
Posts: n/a
 
      08-03-2007
scott wrote on 03 aug 2007 in microsoft.public.inetserver.asp.general:
> "Evertjan." <(E-Mail Removed)> wrote in message
> news:Xns9980C5EF16EC6eejj99@194.109.133.242...
>> scott wrote on 02 aug 2007 in microsoft.public.inetserver.asp.general:
>>
>>> "Jon Paal [MSMD]" <Jon nospam Paal @ everywhere dot com> wrote in
>>>> this is not an asp question, try the javascript group:
>>>>
>>>> comp.lang.javascript
>>>>

>>
>> [Please do not toppost on usenet]
>>
>>> 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.


[I ASK AGAIN: Please do not toppost on usenet]

> 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)
 
Reply With Quote
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      08-03-2007
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:
> 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:(E-Mail Removed)...
>> this is not an asp question, try the javascript group:
>>
>> comp.lang.javascript
>>
>>
>> "scott" <(E-Mail Removed)>
>> .....Is this possible with javascript?


--
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"


 
Reply With Quote
 
 
 
Reply

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto Shipping Auto Shipping Scheduling:car moving auto transport linkswanted ASP .Net 1 11-22-2013 07:02 AM
How to use an asp:button to create a new browser window and output contents to new window =?Utf-8?B?Tm92aWNl?= ASP .Net 2 06-09-2004 10:54 PM
Basic Q - Response.Redirect, all redirect to first Response.Redirect statement Sal ASP .Net Web Controls 1 05-15-2004 03:46 PM



Advertisments