hey folks, i m working on a file i created a function which i call upon when body tag load but it loads so many window. coz its going in a loop. how can i stop it? here is the code
I can’t see any loops - the onload event fires only once, so your ReSize function should only run once. But, if “dimension.html” is the same file as the code you’ve posted, then it will run indefinitely.
You can check for window.parent. If it isn’t the same as window.top then it’s one of your popups.
What is the point of this though? What are you trying to do?
well as of now i had ReSize function in my submit button on click. what i want to achieve is that when the web app url is entered the function is called, making the window where the url has been entered stop its activity after function is called. (because the ReSize function get triggered )