FAQ Database Discussion Community


Javascript - window.open() popup size issue

javascript,html,google-chrome,internet-explorer,window.open
I am trying to display preloaded images in a newly created popup window. Here is the code: HTML <div id="hiddenImages" style="display: none;"></div> <a href="BigImage1.png" onclick="OpenImage(this,event);" target="_blank"> <img src="SmallImage1.gif" width="196" height="130" border="0"></a> <a href="BigImage2.png" onclick="OpenImage(this,event);" target="_blank"> <img src="SmallImage2.gif" width="196" height="130" border="0"></a> JS <script type="text/javascript">...

setTimeout to window.open and close, on the same window?

javascript,jquery,settimeout,window.open
I'm having a little difficulty opening up windows after a period of time, and then closing them after a period of time, automatically. I'm not sure why, but it seems like when I try to use setTimeout on a window.open and window.close they interfere somehow. Here is my code atm:...

Can javascript open a secondary window before the full document is loaded?

javascript,delay,window.open,immediate-window
I am writing a CGI application which sometimes takes up to one minute to run, but not always. In the cases I am able to predict the delay, I would like to open another window warning the user of the expected delay. My first attempt was to have my CGI...

Close opened pop-up window on form submission and trigger click on the parent window

javascript,jquery,form-submit,window.open,window.opener
I have a parent window from where I am opening a pop-up window using window.open() and I am monitoring the return of that pop-up window using the window.opener method. I have two queries here: On my pop-up window, there is a submit button that takes care of the submit functionality...

Check if element exists in fetched URL [closed]

javascript,jquery,python,web-crawler,window.open
I have a page with, say, 30 URLS, I need to click on each and check if an element exists. Currently, this means: $('area').each(function(){ $(this).attr('target','_blank'); var _href = $(this).attr("href"); var appID = (window.location.href).split('?')[1]; $(this).attr("href", _href + '?' + appID); $(this).trigger('click'); }); Which opens 30 new tabs, and I manually go...

Form with 2 submit buttons

javascript,html,forms,window.open
I have one form with 2 submit buttons. The form generates a URL. The 2 outputs of the form are: It writes a URL to a hidden div which displays when they click the Preview button, and It launches the same URL in a new window when they click the...

Radio and Checkbox Checked Values Won't Show in JavaScript

javascript,checkbox,radio-button,window.open
I'm trying to get the value of a radio button and multiple checkboxes to appear in a new window using JavaScript. I can't seem to figure out why "true" return instead of the actual value checked. Below is the code and screenshot of the results. function messagebox() { var newWindow;...

window.open doesn't Open a Window

javascript,window.open
The following markup is generated by my ASP.NET MVC page. <button onclick="window.open='/Client/ReleaseForm';" type="button" class="btn btn-primary"> View/Print Release Form </button> However, clicking the button has no effect. No window is opened, no new tabs are opened, and no errors are shown in the console of my Chrome browser. I know there...

Define XULRUNNER defualt window url

url,window.open,xulrunner
hi i need to do a simple task but it looks like very heavy for me, i need to create XULRUNNER system which opens WWW.test.com in default window without address bar or any menu and nothing more, here are my codes but it doesn't seem to be working, can anybody...