I want page2 doesn't have title bar, tool bar, address bar. Is it possible to specify in javascript function window_onload() in page2? I don't want to specify in window.open() in page1 when it loads page2.
<script type="text/javascript">
function window_onload()
{
}
</script>
<body onLoad="window_onload()">
Specifically, window.onload appears to fire before all the elements of the page have been rendered. As the difference is consistent across IE/Moz/Opera, I'm assuming it's deliberate - can anyone point me towards where this behaviour of window.onload is defined in the documentation? TIA. Code:
I am trying to pop up a window and then do stuff(set flags) when the content of the new window is done loading. For this I am trying to detect the window.onload of the pop-up child window but so far I am unsuccessful. I believe my problem is that the URL of child window is on different domain, than the one of the opener(parent) so that the window.onload is not being called. Though this may change, at the moment I do not have access to the code for the page I'm opening up in the pop-up. Im pretty new to web development.
I am trying to pop up a window and then do stuff(set flags) when the content of the new window is done loading. For this I am trying to detect the window.onload of the pop-up child window but so far I am unsuccessful. I believe my problem is that the URL of child window is on different domain, than the one of the opener(parent) so that the window.onload is not being called. Thought this may change, at the moment I do not have access to the code for the page I'm opening up in the pop-up. Im pretty new to web development.
Heres my js code
Code:
//globals var popupHandle = null; var openingWindow = false; function popWindow(URL){
[Code]....
Note: The whole reason why I am doing this is because if its the first time I am clicking on the button that will open this pop up window and I click it repeatedly very quickly, a new pop up is opened for each time I clicked eventhough the window.open is supposed to reuse the window if it has the same windowId. The first call to window.open takes long enough to not have a window handle and allow other clicks to get through.
Supposedly there are two functions that should run when my page's window loads. One for my clock and one for my new ticker. I can locate the clock function on window.onload, but not the one for the marquee that would stop it from working. Code:
The code below works perfectly in Chrome and FF, but (as usual) it does not work in IE. I think the function "show_guest_notification()" isn't even loading, so does the error lie in the window.onload?
Code: function show_guest_notification() { setTimeout("show_hide_guest_notification()",3000); } var i=0; var c=0; [Code]...
This page looks up a username and password and submits a form to log on to another application on a different server. This works on my PC and on most other PCs I've used to test this on, but it's not working on one of our user's PCs. It remains on this page, and it appears as if no attempt is made to execute the script.
We're both using Internet Explorer 6. Are there any browser settings (or anything else she might have installed, such as popup blockers) that might stop this code being run? I've checked the proxy server isn't stripping out the JavaScript.
I am trying to create a web poll and use the Yahoo UI Library (YUI) to put some action in the percent bar when showing the poll results. It will start the bar at 100px wide and the retreat back to the percentage of the results. This works in Firefox (although once in awhile it stays at 100% and I need to hit refresh, don't know why) but it will not work at all in IE.
The example the yahoo people give is very similar to what I have here, but they use document, 'click' while I use window, 'load'. I don't want to make someone click on it in order for the movement to take place. So I figured just adding window, 'load' would do the trick. It does in FF, but I can't figure out why it doesn't work in IE. I do not get any error messages. Hoping there are some people that have worked with the YUI before. Code:
I am sure this is an easy problem, but I am just getting started with Javascript and can't seem to find the problem. I have spent a lot of time on the net looking for answers, but can't find the solution. I am trying to execute a simple window.onload command to launch a picture rotator. Code:
I'm Green (new) or really just a seedling, without any green showing, yet. I grabbed the X lib and example xMenu 2 and played with it. Question: Does anyone know of a reason this would not work cross-browser (see below)? It is working for me, now, in IE 5, but it is the only browser I have to test with.
<script type='text/javascript' src='../js/x_load.js'></script> <script type='text/javascript'> if (xInclude('../js/x.js','../menu/xmenu_html.js','../js/x_menu2.js')) { window.onload = function(){ setTimeout('winOnload()',1000); } // winOnload() is found in ../menu/xmenu_html.js } </script>
using just window.onload=winOnload; did not work giving a "winOnload" is undefined error, but with the setTimeout did...
I have a textarea on the page. When the page loads, I need it to have some default text (which will be generated dynamically)
so I did something like this
function init() { document.getElementById("TexareaID").value = "default text"; }
window.onload { init(); }
but the problem is firefox always return "TextAreaID" has no properties because the textbox hasn't loaded it yet..it seems. How do I get around that? (I know mabye i can insert the script below the textbox.. but that's ugly. Any other ways?
I tried to display an alert window (avoid pop up since some users blocks it and hence not displayed on onload event in body) But it is not displayed properly like popup window.
How to add an onload function to an opened window? (target is "self", not window.open, just a regular link)Is it possible with onbeforeunload or something? Or add onclick to the "normal link"?I mean like this:
I have 2 Javascript's running, and as you can guess by my title, only one is loading because of the window.onload being triggered twice. The last one that is called in the <head> of the document is the one that runs. One of the JavaScript's is run in the page, the other is called from a external file. I cannot figure out how to combine the window.onload functions so they can both be run. Here's the first Javascript that contains a window.onload. This is responsible for rounding the corners on my page. This code is inserted directly in the page, with an external file that accompinies it. The external file does not contain the window.onload, so i havent attached it.
Is there a way to make 2 functions load at the same time using window.onload? I have to seperate functions which rotate images, then another that rotates text.Functions:showQuote()iAnimate()
If I use a window opener to open a new window, is there a way to detect that the new window is finished loading before carrying out some other directive in the opener window? Can I access the remote window's onload event from the opener window? I need to know that the website has loaded before moving to the next page. something like:
<script> function imgdis () { window.resizeTo(400,500); } </script> <body
However i still need to make this window to be displayed without Statusbar, Scrollbar, etc. I wanted to be stripped so it only displayes the content. Can i do this from the function that i already set?
When using this script on a external js, it will not run. Trying to learn js and I do not understand why it does not work, when it should. The window.onload should call the function.