473,669 Members | 2,514 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 11280
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" <va************ *@msn.com> wrote in message
news:1f******** *************** **@posting.goog le.com...
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
17686
by: bob | last post by:
Hi, consider this script: <script> function doIt() { alert("ok") } document.onclick=doIt // or document.onclick=doIt() </script>
8
3680
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 and passes it two parameters. For the life of me I cannot figure out what the error is, but one occurs everytime I click a &%*$&# radio button. Also, the function only alerts the user immediately as to what question/answer they clicked. I am...
3
60093
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 variable. My code is: <FORM NAME=FORM1 ACTION=""> <input type="button" name="B1" onclick="ModC('1')">
0
3698
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. 2User can select from drop down, click add button and add selection to database. A)Datagrid binds and deletes fine. B)If I select the first value of drop down addition to database works fine. C)<problem>if I select the 2nd value of drop down it...
3
3254
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 "return promptBeforeOpening();" FF and IE rewrite it as I would expect them to, but it turns out that that doesn't work (no disclaimer pops up, and the link is not disabled):
1
1759
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 thought is i'm losing the parameters on page reload. But if that is the case then I don't know the correct technique to keep the variables I am programming in php but using a javscript function with onclick. I could use $_SESSION variables to retain...
3
2467
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 error with the Form: Compiler Error Message: CS0122: 'Sonar3.Controls.LoginControl.Button_Click(object, System.EventArgs)' is inaccessible due to its protection level
0
1022
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, followed by the onclick tag for the button: Sub doInsert(Source as Object, E as EventArgs) Dim MySQL as string = "Insert into Articles (articleheader, articledate, articletext, sid) values (@articleheader, @articledate, @articletext, @sid)"...
2
30625
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 im passing two parameters to the show_photo() function, the path of the image and the description In show_photo(), the parameters are always the last image and
5
7905
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 () { func1('para1') }
0
8466
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8896
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8810
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8590
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5683
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4208
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4387
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2798
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2035
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.