473,386 Members | 1,832 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,386 software developers and data experts.

refresh first before going to new window

i want to refresh the page first before going to a new window by just clicking one link.
the scenario is, if i click the link, the page will refresh and after it refreshes, it goes to another window.
thanks.
Mar 5 '07 #1
4 1660
acoder
16,027 Expert Mod 8TB
Welcome to The Scripts.

What do you mean by going to a new window? Do you mean open a new window or give focus to a new window?

I don't know why you'd want this, but you could pass something in the URL, e.g. refresh=1 and then check on body onload if refresh has been set to 1. If so, go to the new window.
Mar 5 '07 #2
I have this link that if you click it, it will direct you to another page. What i want is, when i click the link, the page will refresh first then, after it refreshes, it will go to the new page.

It is something like you refresh the page, then clicking the link-and I go to a new window. I just like to do the refresh and go to a new window after it refreshes by just clicking one link.

Thanks.
Mar 6 '07 #3
Hi,

I have also tried onClick="window.location.reload()"; before the "</a>" of the href but when I clicked it, it only refreshes the page and not going to the window. but when I right click the link, and chose open in new window, it still goes to the page.

I hope you guys understand what I wanted to do., I just want to refresh the window, then after it refreshes, it goes to another window by just clicking one link.

Thanks
Mar 6 '07 #4
sumittyagi
202 Expert 100+
Hi,

I have also tried onClick="window.location.reload()"; before the "</a>" of the href but when I clicked it, it only refreshes the page and not going to the window. but when I right click the link, and chose open in new window, it still goes to the page.

I hope you guys understand what I wanted to do., I just want to refresh the window, then after it refreshes, it goes to another window by just clicking one link.

Thanks

hi! paoparaopao!
I don't understand why u want to do this. this in out of a real scenario, and unstable thing to do.
and answer is: it is not possible. as everything gets refreshed when you refresh the page, scripts, events, etc. everything.

But yea! a similar thing is possible: you can do get the reference of parent window from child window(using window.opener, or window.parent). so you can do refresh after opening the link in new window.

But if possible, try avoiding such scenarios, as this is not a good practice.
Mar 6 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Tarken | last post by:
Hi, I am trying to do some refactoring of a web site to ensure that it displays in the most web clients possible. One of the pages requires to be redirected to another automatically, for one...
3
by: MEM | last post by:
Hello, I'd like to refresh the main or top most browser window from a child window. Specifically, child popup A is opened by a main browser window then child popup B is opened from within child...
3
by: nicver | last post by:
I am working on updating a Web site with a frameset. A page opens a pop-up window in which the user uploads pictures. Once the upload is done, I would like to refresh the content of the frame which...
3
by: Danny | last post by:
HI How can I refresh the main project window in code in ms access 2000 For example, I create a new table, but when I minimize the form, the table is not there until I do F5 (refresh). I do...
3
by: Steve Wark | last post by:
I have created a ASP.NET application and created two forms within the application (Webform1.aspx & Webform2.aspx). On the first form I have placed a textbox (TextBox1) and a button, which when...
3
by: Opa | last post by:
Hi , I have a form with javasript which launches a popup via the showModalDialog() method. I get the dialog to open, now I am trying to first get a reference to the calling form from the popup...
2
by: ajain1 | last post by:
Folks, I want to refresh my child window after a particular interval of time, its working with the following code, but after getting refresh its always forward me on first URL not on the current...
3
by: =?Utf-8?B?Qi4gQ2hlcm5pY2s=?= | last post by:
Ok guys, refresh my memory. I have a vague memory from years ago of a Dot Net 1.1 web app in which one window was opened from another (not a message box or anything like that, but a fully separate...
4
by: Peter | last post by:
ASP.NET 3.5 I have a web page and this web page has a DataList, when user hovers the mouse over a picture in the datalist a popup appers, this popup is a User Control and it has a cancel button....
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
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...

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.