473,396 Members | 2,093 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,396 software developers and data experts.

Control Refresh Mimic

Jay
Hello all,

Is it possible to mimic the Ctrl. + Refresh functionality with a button
in a webpage using javascript, ideally by placing a button(or link) on
a page that when clicked would have the same effect as holding down the
Ctrl. key while clicking on the refresh button on the browser.

..J

Dec 9 '06 #1
3 2167

Jay wrote:
Hello all,

Is it possible to mimic the Ctrl. + Refresh functionality with a button
in a webpage using javascript, ideally by placing a button(or link) on
a page that when clicked would have the same effect as holding down the
Ctrl. key while clicking on the refresh button on the browser.
What do you expect it to do? It does different things depending on the
browser and platform.

--
Rob

Dec 10 '06 #2
Jay
What do you expect it to do? It does different things depending on the
browser and platform.
I wanted it to have the same effect as it does on IE, although I know
that in Firefox it doesn't make any difference if you hold the Ctrl.
key down. Idealy i would like it to work on all browsers the same as it
does on IE but that's probably impossible to do in javascript.

..J

Dec 10 '06 #3
VK

Jay wrote:
Is it possible to mimic the Ctrl. + Refresh functionality with a button
in a webpage using javascript, ideally by placing a button(or link) on
a page that when clicked would have the same effect as holding down the
Ctrl.
1) There is not "Ctrl + Refresh" functionality. There is "reload
current page" command you can execute under Internet Explorer by using
shortcuts Ctrl+R or F5

2) Despite Ctrl+R shortcut is common to many other browsers (including
Firefox), on a long run never assume that everyone everywhere is using
the same browser that you are using. When applying to browser-specific
analogies always specify what UA are you referring to. Best of all is
avoiding any analogies all together and explaining the desired behavior
directly.

3)
<button type="button" onclick="
window.location.href = window.location.href;
">Refresh</button>

Dec 10 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Dave | last post by:
I have two forms, Form1 and Form2. From Form2, how do I reference the value in a control on Form1? Or perhaps a more specific question: Form1 contains a textbox with the value of 10. This form...
1
by: hqdtech | last post by:
how to refresh webform from other webform I have 2 webform, i want if webform A was close then webform B wil refresh. And the problem second: how to catch packet on the network in C#. ...
4
by: RL Stevenson | last post by:
Often I want to change the Enable or Visibility on a control when some other control on the form changes. Or maybe I need to make a change to the DataSource on a combo box when the user makes a...
2
by: Peter Oliphant | last post by:
I now have graphics being drawn in the Paint event of my form (yeah, and it's very cool). Problem was that it only updated any changes to these graphics when Paint was called. So, I then made it...
6
by: MattB | last post by:
I have a page header that I made as a user control (ascx) that I drop on every page in my application. The application is an eCommerce application and I have a total for items in the cart on the...
0
by: Allan Bredahl | last post by:
Hi all Im currently constructing a Windows control that inherits from RichTextBox, but I'm having a bit of trouble with updating the control at design time. The senario is SIMPLIFIED as...
3
by: --== Alain ==-- | last post by:
Hi, I have a control which has a collection property. when an item of the collection property will be added, removed, and so on, i would like to refresh the control itself. Usually for that i...
1
by: Sue | last post by:
Hello Is there an equivalent of a OnTextChangedEvent for a asp: label control in asp.Net 2.0. Every time the text of a label changes, I want the items in a listbox control cleared. Tried...
3
by: R.A.F. | last post by:
Hi, I have a custom control in which i have a property based on CollectionBase class. like the following one : //------- XGrid.cs file --------------// public ColumnsCollection Columns {
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?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.