Auto Redirect to New Window

Discussion in 'ASP General' started by scott, Aug 2, 2007.

  1. scott

    scott Guest

    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=no');">
    <img border="0" src="images/myimage.gif" width="16" height="16"></a>
     
    scott, Aug 2, 2007
    #1
    1. Advertising

  2. scott

    Tim Slattery Guest

    "scott" <> 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://members.cox.net/slatteryt
     
    Tim Slattery, Aug 2, 2007
    #2
    1. Advertising

  3. scott

    scott Guest

    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" <> wrote in message
    news:...
    > "scott" <> 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://members.cox.net/slatteryt
     
    scott, Aug 2, 2007
    #3
  4. scott

    scott Guest

    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:...
    > this is not an asp question, try the javascript group:
    >
    > comp.lang.javascript
    >
    >
    > "scott" <>
    > .....Is this possible with javascript?
    >>

    >
    >
     
    scott, Aug 2, 2007
    #4
  5. scott

    Evertjan. Guest

    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:...
    >> 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)
     
    Evertjan., Aug 2, 2007
    #5
  6. scott

    scott Guest

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

    "Evertjan." <> 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:...
    >>> 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)
     
    scott, Aug 3, 2007
    #6
  7. scott

    Evertjan. Guest

    scott wrote on 03 aug 2007 in microsoft.public.inetserver.asp.general:
    > "Evertjan." <> 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)
     
    Evertjan., Aug 3, 2007
    #7
  8. 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:...
    >> this is not an asp question, try the javascript group:
    >>
    >> comp.lang.javascript
    >>
    >>
    >> "scott" <>
    >> .....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"
     
    Bob Barrows [MVP], Aug 3, 2007
    #8
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?Tm92aWNl?=
    Replies:
    2
    Views:
    6,666
    Alan Ferrandiz Langley
    Jun 9, 2004
  2. Matt
    Replies:
    2
    Views:
    13,983
    bruce barker
    Aug 23, 2004
  3. Matt
    Replies:
    1
    Views:
    435
    Andrew Thompson
    Aug 22, 2004
  4. linkswanted
    Replies:
    1
    Views:
    925
  5. Sal
    Replies:
    1
    Views:
    538
Loading...

Share This Page