Please help me about function window open

Started on the old forum in March 2012 · view the original in the archive · old links redirect here

3 replies · 433 views · started 14 years ago · 1 min read

3 participants
eyuswap Newbie · 2 posts #1

I have function wndw open auto close wndow 10second. .

<script type="text/javascript"> function PopWin(urlName) { var popup = window.open(urlName, "",'width=80,height=100'); setTimeout(function(){ popup.close(); window.location="admin.php" } ,10000) } </script> <body onload="javascript:PopWin('forum.php">

can you help me to make any windows open. . I want make more than one windows open. .please share to me. .

something else Fellow · 2,296 posts #2
<script type="text/javascript">
function PopOpen(url1,url2,url3) {
window.open(url1,'name','height=200,width=150');
window.open(url2,'name','height=200,width=150');
window.open(url3,'name','height=200,width=150');
}
</script>
<body onload="PopOpen('forum.php','http://google.com','index.php')">
eyuswap Newbie · 2 posts #3

Thx bro. . .but how to add function auto close windows open?

just_m3. Developer · 199 posts #4

eyuswap wrote: Thx bro. . .but how to add function auto close windows open?

Define var than close it 🙂 like this myvarname.close();


take a look on your first code to open window 🙂

This is ten percent luck, twenty percent skill Fifteen percent concentrated power of will Five percent pleasure, fifty percent pain 😂And a hundred percent reason to remember the name!

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close