By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,382 Members | 1,637 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,382 IT Pros & Developers. It's quick & easy.

onclick parameters

P: n/a
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
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
don't use # in the href...

<a href="popup.html" target="_blank"
onclick="window.open('popup.html','','width=300,he ight=300'); return
false;">
"Luis" <va*************@msn.com> wrote in message
news:1f*************************@posting.google.co m...
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

Jul 20 '05 #2

P: n/a
Luis wrote:
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


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

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.