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.
I have a javascript which loaded a google map on button ckick.. If I click the button again the map is not getting refreshed Is there any way to refresh the map?
Wondering how one would go about creating a popup window that would exactly copy the size & location of the parent window. I am guessing that you would combine two functions, one to assign size & location of parent window to JS variables; the next to open the popup incorporating those variables. I'm sure i can find snippets on the web. would there be a simpler way?
I really like the sitepoint popup that pops up at the bottom, it looks nice and is unintrusive. I want to make a popup like this but instead of triggering it when I first load the site I want it to show up when I move my mouse cursor to the top outside of the website real estate.
I am experienced with PHP but this really is a JS thing.
I wish to automate the population of a page by prefilling form values such as select boxes as well as fire off the change event after the value has been set. However there are at least 3/4 select boxes on one page which need populating automatically.
This works fine for the first element but not for subsequent elements all in one go when use the Trigger method of Jquery.
Situation:I have a very long page divided into many sections vertical-wise marked by bookmarks, say pageX.html#s1 to s10. I need to show the section inside an iframe (iFrame1) on the mainpage (mainpage.html). I am thinking of having 4 buttons, sitting on the mainpage, to help navigate between these sections on pageX, namely NEXT, PREVIOUS, TOP, END.condition of the frame, fixed width/height, no scroll, no border.Very new to javascript but need this code to make a page work for BIZ.
I have this code in a page that appears in my iframe if requested from parent:
<script type="text/javascript"> parent.rrr(); </script> The parent code is: function rrr() { javascript:location.reload(true); }
So, the person clicks a link from the parent, it does a php process in a hidden iframe, which then tells the parent page to refresh. The only problem is that it puts Firefox in a constant loop of refreshing. IE and Chrome work fine. They refresh once and stop.
Though the src code opens the iframe like so: <iframe src="" style="display:none; height:1px;" name="hdplus" id="hdplus"></iframe> Firefox seems to refresh the page with the memory of the child page being in the iframe, constantly looping the child request to refresh the parent.
Why won't Firefox just accept that no page should load in the iframe, as stated in the code? I need to stop this loop, which means I need to get firefox to reset the iframe as it reloads the page.
does anybody know how I am able to control Flash Movies from html or JavaScript? For example, I want a movie go to a specific frame each time I open the html file where it is embedded.
I have a form frm1 . The form is generated by a "control" that is placed on the page - I have no access to the source to modify the controls. I can access other hidden controls within it by referencing:
ocontainer.frm1.txt1.value;
I would like to insert my own hidden control that can be posted back to to my page so I can do something with it. How can I do this from clientside at runtime?
Is there a possibility to compare and visualize in a user-friendly way the differences of two html files?
I need also something like a version-control. I think I could generate for everychange of the text a new record in the database. But now I need a tool (JavaScript, Java, etc.) to compare and visualize two versions of these html-files online over a web-browser. I know, this is not really a javascript topic, but perhaps here is anyone how knows a tool for that.
In HTML documents, named forms may be referred to as named properties of the `` document.forms '' collection, and named form controls may be referred to as named properties of the form's elements collection:
var frm = document.forms["formname"]; var contrl = frm.elements["elementname"];
The (string) value property of such controls can be read directly from the element:-
var value = contrl.value; var value = (+contrl.value); //string to number: see 4.21
One exception is where the control is a SELECT element, and support for older browsers, such as NN4, is required:
var value = contrl.options[contrl.selectedIndex].value;
Another exception is where several controls share the same name, such as radio buttons. These are made available as collections and require additional handling. For more information, see:-
I have the following problem: I have a swf file that I'm inserting in my page, this swf file has a sound(mp3 imported file in the stage). I was wandering if I can stop or set the volume to 0, from JavaScript, I found that I can do(play go to frame):
i am useing Javascript Function's for validation Its Working Fine But If Condition Not Matches Its Not getting Focus On That Control. cursor Going To url ...is There Something with Post Back..
I have a page with many links to media player playlists. I want to place a checkbox next to each title so that the user can check the box when they have listened to the selection.
The boxed needs to remained checked when the user comes back to the page so that they know where they left off. I also need to be able to manually uncheck the boxes.
Basically, I need to be able to check and uncheck the box at will and have it be the same when I come back to the page.
I have looked at some onclick scripts but nothing has worked yet. There may be a better way to do this that I have not thought of. Dynamic HTML, applets, etc.
I have a .net application that I am trying to add some javascript code to for a client-side execution. What I want to do is resize all the HTML text fields on my web form, but instead of writing a line for each text box I would like to loop through a collection of controls and resize the control if it is a text field. Is there a way to do this in javascript? The function below is what I have been toying with for the past couple of hours. Another idea was to use a css, but I can't find an element for the text field.
function Test() { Tarray = new Object; Tarray = document.Form1.children for (var prop in Tarray) { //document.writeln(Tarray.toString); var s; s = prop if (Left(s, 3) == "btn") { prop.height = "20px"; } } }
I have some web-server-side code that may place a textbox anywhere on a page. It might be on the page itself, it might be within a <form>, it might be within a <div> in the form, or in a <div> inside the first <div>.
Is there a script out there that will let me, given just the control's ID, recursively find it anywhere on the page so I can set focus to it?
I am having a bit of trouble with running my own (onkeyup) code in response to a tab and then making sure that the tab-effect still occurs i.e. focus on the next control in the tab order isn't happening even though I return true from the function.
I need to find what control is in some position given. I mean, if I give the values left: 200px and top 300px I need to know what control in the page is in that position, or if there is not any.