Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
JAVASCRIPT - Popup windows example
SUBMITTED BY:
efbee
DATE:
Oct. 4, 2016, 11:02 p.m.
FORMAT:
JavaScript
SIZE:
517 Bytes
Raw
Download
Tweet
HITS:
931
Go to comments
Report
<
script
type
=
"text/javascript"
>
// Popup window code
function
newPopup
(
url
)
{
popupWindow
=
window
.
open
(
url
,
'popUpWindow'
,
'height=700,width=800,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes'
)
}
<
/script>
<
p
>
Popup
Window
:<
/p>
<
p
><
a
href
=
"JavaScript:newPopup('http://www.quackit.com/html/codes/');"
>
Get
your
HTML
codes
in
a
popup
!<
/a></p>
<
div
class
=
"more-info"
>
<
p
>
More
info
:
<
a
href
=
"/javascript/popup_windows.cfm"
>
Popup
Windows
<
/a></p>
<
/div>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus