473,372 Members | 839 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 software developers and data experts.

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
Jul 20 '05 #1
2 11242
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: bob | last post by:
Hi, consider this script: <script> function doIt() { alert("ok") } document.onclick=doIt // or document.onclick=doIt() </script>
8
by: Shock | last post by:
Hello everyone, I am having a problem with the program below. I have isolated the problem to the onclick event that is located throughout arrQuestions. The onclick event refers to a function...
3
by: Zalek Bloom | last post by:
Hello, Here is my problem: I am displaying to a user a row of buttons. Depending on which button user presses, I want to go to a different URL and to give a different value to a hidden...
0
by: LU | last post by:
I have a datagrid for viewing and deleting. Under that I have a drop down with binded info and a button to add the select drop down item into database. 1User can view datagrid and delete info....
3
by: Jamie Jackson | last post by:
I'm rewriting all links' onclick events, but I'm having a problem. The onclick event that I'm inserting works correctly in Opera, but not in FF or IE. I'm retroactively adding the statement...
1
by: brianj7675 | last post by:
Basically i'm trying to write a previous next link in order to go to the next page in my database(similar to google's with numbers in the middle for pages the user wants to jump to. My only...
3
by: I am Sam | last post by:
Please help. I'm dying here and pulling out the last few remaining elements of my hair over this. I have built a form that will identify and authenticate users. I keep getting the following...
0
by: Chumley Walrus | last post by:
This may be a service pack issue, but uncertain as administrators are on vacation, but I have an insert script thats insert button works on one server, but not on another: Here is the subroutine,...
2
by: SM | last post by:
Hello, I have two functions: show_thumbnail() and show_photo(). See code below. In show_thumbnail() i create a <ullist using Javascript and the DOM. In the tag <ai create a onclick function and...
5
by: michaelscript | last post by:
Here is a simple code : <input type="checkbox" id="ck1" onclick="func1('para1')"> <script> alert(ck1.onclick); //result of this: ///////////////////// function anonymous () { ...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.