onclick parameters

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Luis

    onclick parameters

    I have an onclick function that pops a new window (nothing fancy) the
    problem is that whenever I want to return to the page where I popped
    the new window from I find that it is reloaded and has taken me to the
    fist line of the page. What parameter (or anything else for that
    matter) can I add in order to pop up a new window and still be in the
    same place when I return to the previous page?
    Thanks for your help guys
  • Marc

    #2
    Re: onclick parameters

    don't use # in the href...

    <a href="popup.htm l" target="_blank"
    onclick="window .open('popup.ht ml','','width=3 00,height=300') ; return
    false;">


    "Luis" <vasquezluis200 3@msn.com> wrote in message
    news:1f632490.0 306260637.72699 d9@posting.goog le.com...[color=blue]
    > I have an onclick function that pops a new window (nothing fancy) the
    > problem is that whenever I want to return to the page where I popped
    > the new window from I find that it is reloaded and has taken me to the
    > fist line of the page. What parameter (or anything else for that
    > matter) can I add in order to pop up a new window and still be in the
    > same place when I return to the previous page?
    > Thanks for your help guys[/color]


    Comment

    • arkadiusz juszczyk

      #3
      Re: onclick parameters

      Luis wrote:[color=blue]
      > I have an onclick function that pops a new window (nothing fancy) the
      > problem is that whenever I want to return to the page where I popped
      > the new window from I find that it is reloaded and has taken me to the
      > fist line of the page. What parameter (or anything else for that
      > matter) can I add in order to pop up a new window and still be in the
      > same place when I return to the previous page?
      > Thanks for your help guys[/color]

      just guessing here, but...
      you probably have:

      <a href="#" onClick="popup( )">nothing fancy</a>

      and you want to have:

      <a href="some-page-for-scriptically-challenged-browsers.html"
      onClick="popup( ); return false;">nothing fancy</a>

      the critical thing being the "return false", which tells the browser not
      to try and follow the link.

      arkadiusz

      --
      _______________ _______________ _______________ ___________
      enabling the empowerment and synergy of the new paradigm

      Comment

      Working...