פופ אפ – הבדלי גרסאות

תוכן שנמחק תוכן שנוסף
שורה 18:
* חלון הנפתח ברגע הכניסה לדף יציג את העמוד one.html וגודלו יהיה 400 על 400 פיקסלים. לא יכיל סרגל כלים, יכיל שורת כתובת, לא יכיל שורת מצב ותפריטים, לא יכיל פסי גלילה ולא ניתן יהיה לשנות את גודלו:
<source lang="html4strict">
<script type = "text/javascript">
window.open("one.html", "", "toolbar = no, location = yes, directories = no, status = no, menubar = no,
scrollbars = no, resizable = no, width = 400, height = 400");
</script>
</source>
שורה 26:
* אותו חלון, שייפתח הפעם רק בלחיצה על קישור:
<source lang="html4strict">
<script type = "text/javascript">
function PopUp() {
window.open("two.html", "", "toolbar = no, location = yes, directories = no, status = no, menubar = no, scrollbars = no,
{
resizable = no, width = 400, height = 400");
window.open("two.html","","toolbar=no, location=yes, directories=no, status=no, menubar=no, scrollbars=no,
resizable=no, width=400, height=400")
}
</script>
שורה 36 ⟵ 35:
והקישור שלחיצה עליו תפעיל את החלון
<source lang="html4strict">
<a href = "javascript:PopUp();">Click Here!</a>
</source>