PDA

View Full Version : popup window script


tonto
08-20-2002, 07:51 AM
hi,

i have given a piece of script that opens a popup window of some other website .
they told me to put the script inside head tag.

the script is like this



<!-- Start code -->
<script type="text/javascript" language="JavaScript" src="http://somewebsite.com/popup.asp?from=somenumber">
</script>
<!-- End code -->

now only once the popup window got opend when the url when i opened the page whr i have place that code but not the other times.

does the code i have place in head tag gets executed automatically or i have to call that code somewhr ?
(eg on body load event).if yes how to call this code ?

i am confused ..pls help

thnks in advance

tonto

scoutt
08-20-2002, 09:03 AM
that one way of doing it. so whatever is in popup.asp will get executed. but only when you load the page the first time. after that you will need to to a hard refresh.

tonto
08-20-2002, 11:36 AM
ok,

so that means the piece of code gets executed automatically only once (ie when the URL gets opened for the first time).am i right ?

wht do u mean by hard refresh ?i deleted the cache and history and load that page but with no popup...


thanks in advance

tonto

scoutt
08-20-2002, 12:58 PM
you can do it that way or you can hold the ctrl key down while you press Refresh.