Hello to all i need to open new browser window automatically.
Here is code where i have to click on button to open window :
myWindow.document.write("<p>This is 'myWindow'</p>");
<input type="button" value="Open window" onclick="openWin()" />
Please how i can open window , without clicking on button so window just open automatically ?
Technically, you could simply put your window.open() code in the <body> or use an onload event to call your openWin function, but the pop-up blockers in most browsers will prevent a new window from opening automatically without an explicit user action like a click on a button.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)