/    Sign up×
Community /Pin to ProfileBookmark

Double Window

Can I open with a button 2 same windows?
If so, how can I do It?
and is it possible to choose different loading timming for each windows?

thanks

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@Mr_JApr 24.2006 — Please try the following

[code=php]<script type="text/javascript">

function openWin(){

setTimeout(function(){win1=window.open('page1.htm','w1','left=80,top=100,width=300,height=300')},3000)

setTimeout(function(){win2=window.open('page2.htm','w2','left=400,top=100,width=300,height=300')},6000)

}

</script>

<button onclick="openWin()">Open Windows</button>[/code]
Copy linkTweet thisAlerts:
@rwtauthorApr 24.2006 — nonono...

Heres my code:

[code=php]<form name="form0" method="POST" action="https://admin.infomaniak.ch/login.php" onsubmit="return checkForm(document.form0);" target="_blank"><TABLE WIDTH="481" BORDER="0" CELLSPACING="0" CELLPADDING="0">
<TR>
<TD CLASS="txtTGray11" align="center">
<p align="center"><font face="Arial">Email Adress</font></TD>
<TD STYLE="padding-left:3px;" CLASS="txtTGray11s" align="center">
<p align="center"><font face="Arial">Password</font></TD>

</TR>

<TR>
<TD align="center">
<p align="center">
<input type=text name="sMailbox" CLASS="form_general" STYLE="width:132;height:22"></TD>
<TD STYLE="padding-left:3px;" align="center">
<p align="center">
<input type=password name="sPassword" CLASS="form_general" STYLE="width:132;height:22"></TD>
</TR>
<TR>

<TD COLSPAN="2" STYLE="padding-top:2px;" align="center">
<p align="center">
<input type=button name="Submit2" value="Webmail" onclick="document.form0.password.value =document.form0.sPassword.value;document.form0.mailbox.value =document.form0.sMailbox.value;document.form0.action='https://webmail.infomaniak.ch/login.php';document.form0.submit();" CLASS="form_general">
<font face="Arial">or</font>&nbsp; <input type=button name="Submit" value="Administration" onclick="document.form0.action='https://admin.infomaniak.ch/login.php';document.form0.submit();" CLASS="form_general"></TD>[/code]


for the buttons webmail and administration, I would like to open [CODE]https://admin.infomaniak.ch/login.php[/CODE] twice.

thanks
×

Success!

Help @rwt spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...